mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Abbreviate serviceStatus for small devices
This commit is contained in:
@@ -44,7 +44,7 @@ function DisplayHostAPDConfig()
|
||||
exec('cat '. RASPI_HOSTAPD_CONFIG, $hostapdconfig);
|
||||
exec('pidof hostapd | wc -l', $hostapdstatus);
|
||||
|
||||
$serviceStatus = $hostapdstatus[0] == 0 ? "stopped" : "running";
|
||||
$serviceStatus = $hostapdstatus[0] == 0 ? "down" : "up";
|
||||
|
||||
foreach ($hostapdconfig as $hostapdconfigline) {
|
||||
if (strlen($hostapdconfigline) === 0) {
|
||||
|
Reference in New Issue
Block a user