Add hostapdStatus to System

This commit is contained in:
billz 2020-02-01 11:06:41 +00:00
parent 223b20ddc9
commit 1bbeefca7c
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}
}