diff --git a/app/lib/system.php b/app/lib/system.php index 4e4c8879..9e374d5c 100644 --- a/app/lib/system.php +++ b/app/lib/system.php @@ -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; + } + +}