Change state using socket call to emhttpd

This commit is contained in:
bergware
2018-03-18 20:17:32 +01:00
parent e36e0bcc86
commit 93ab98844f
-1
View File
@@ -28,7 +28,6 @@ if ($device=='New') {
$cmd = $action=='up' ? 'S0' : ($action=='down' ? 'y' : false);
if ($cmd && $name) exec("/usr/sbin/hdparm -$cmd /dev/$name >/dev/null 2>&1");
} else {
$disks = parse_ini_file('state/disks.ini',true);
if ($name) emhttpd("cmdSpin$action=$name"); else emhttpd("cmdSpin{$device}All=true");
}
?>