From 1bbeefca7cabfbc691c7eb5a118c32fa8aa82506 Mon Sep 17 00:00:00 2001 From: billz Date: Sat, 1 Feb 2020 11:06:41 +0000 Subject: [PATCH] Add hostapdStatus to System --- app/lib/system.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; + } + +}