1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Abbreviate serviceStatus for small devices

This commit is contained in:
billz 2019-11-01 09:10:24 +00:00
parent 5a3f27ea73
commit 7f384e9ff1
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ function DisplayDHCPConfig()
} }
} }
$serviceStatus = $dnsmasq_state ? "running" : "stopped"; $serviceStatus = $dnsmasq_state ? "up" : "down";
exec('cat '. RASPI_DNSMASQ_CONFIG, $return); exec('cat '. RASPI_DNSMASQ_CONFIG, $return);
$conf = ParseConfig($return); $conf = ParseConfig($return);

View File

@ -44,7 +44,7 @@ function DisplayHostAPDConfig()
exec('cat '. RASPI_HOSTAPD_CONFIG, $hostapdconfig); exec('cat '. RASPI_HOSTAPD_CONFIG, $hostapdconfig);
exec('pidof hostapd | wc -l', $hostapdstatus); exec('pidof hostapd | wc -l', $hostapdstatus);
$serviceStatus = $hostapdstatus[0] == 0 ? "stopped" : "running"; $serviceStatus = $hostapdstatus[0] == 0 ? "down" : "up";
foreach ($hostapdconfig as $hostapdconfigline) { foreach ($hostapdconfig as $hostapdconfigline) {
if (strlen($hostapdconfigline) === 0) { if (strlen($hostapdconfigline) === 0) {