mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
Add hostapdStatus to System
This commit is contained in:
parent
223b20ddc9
commit
1bbeefca7c
1 changed files with 6 additions and 1 deletions
|
@ -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 a new issue