mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Add hostapdStatus to System
This commit is contained in:
parent
223b20ddc9
commit
1bbeefca7c
@ -50,5 +50,10 @@ class System {
|
||||
$cpuTemp = file_get_contents("/sys/class/thermal/thermal_zone0/temp");
|
||||
return number_format($cpuTemp/1000, 1);
|
||||
}
|
||||
}
|
||||
|
||||
public function hostapdStatus() {
|
||||
exec('pidof hostapd | wc -l', $status);
|
||||
return $status;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user