mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 00:50:29 +00:00
Abbreviate serviceStatus for small devices
This commit is contained in:
parent
5a3f27ea73
commit
7f384e9ff1
2 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ function DisplayDHCPConfig()
|
|||
}
|
||||
}
|
||||
|
||||
$serviceStatus = $dnsmasq_state ? "running" : "stopped";
|
||||
$serviceStatus = $dnsmasq_state ? "up" : "down";
|
||||
|
||||
exec('cat '. RASPI_DNSMASQ_CONFIG, $return);
|
||||
$conf = ParseConfig($return);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue