mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Add hostapdStatus to System
This commit is contained in:
		| @@ -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; | ||||
|   } | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user