mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Temp readout fix for Pine A64
And possibily other devices:
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
$cmd = "echo $((`cat /sys/class/thermal/thermal_zone0/temp|cut -c1-2`)).$((`cat /sys/class/thermal/thermal_zone0/temp|cut -c3-4`))";
|
||||
$cmd = "echo $((`cat /sys/class/thermal/thermal_zone0/temp | cut -c1-2`))";
|
||||
$output = shell_exec($cmd);
|
||||
$output = str_replace(["\r\n","\r","\n"],"", $output);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user