Skip to content

Commit

Permalink
Merge remote-tracking branch 'obsy/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
lantis1008 committed Jun 3, 2023
2 parents 207b44f + 1666d1f commit 73b6fab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/gargoyle/files/usr/lib/gargoyle/tempinfo.sh
Expand Up @@ -31,8 +31,8 @@ case "$tmodel" in
TEMPWIFI="-";
show_temp=0;
# Try to load whatever info we can find from hwmon or thermal_zone
[ -e /sys/class/thermal/thermal_zone0/temp ] && { TEMPCPU=$(cut -c1-2 /sys/class/thermal/thermal_zone0/temp); show_temp=1; };
[ -e /sys/class/hwmon/hwmon0/temp1_input ] && { TEMPCPU=$(cut -c1-2 /sys/class/hwmon/hwmon0/temp1_input); show_temp=1; };;
[ -e /sys/class/thermal/thermal_zone0/temp ] && { TEMPCPU=$(cut -c1-2 /sys/class/thermal/thermal_zone0/temp); [ -n "$TEMPCPU" ] && show_temp=1; };
[ -e /sys/class/hwmon/hwmon0/temp1_input ] && { TEMPCPU=$(cut -c1-2 /sys/class/hwmon/hwmon0/temp1_input); [ -n "$TEMPCPU" ] && show_temp=1; };;
esac

echo "temps.push(\"$show_temp\",\"$TEMPCPU\",\"$TEMPMEM\",\"$TEMPWIFI\");"
Expand Down

0 comments on commit 73b6fab

Please sign in to comment.