Commit 840a6534 authored by rage311's avatar rage311

Changed OpenBSD cpu temp logic to grep specifically for lm0 or cpu0

parent 9984c518
......@@ -1086,7 +1086,7 @@ get_cpu() {
deg="${deg/C}"
;;
"OpenBSD"* | "Bitrig"*)
deg_var="$(sysctl hw.sensors | grep -m1 temp0 | cut -d'=' -f1)"
deg_var="$(sysctl hw.sensors | grep -m1 -E 'lm0.temp0|cpu0.temp0' | cut -d'=' -f1)"
deg="$(sysctl -n $deg_var)"
deg="${deg/0 degC}"
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment