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:
parent
5a3f27ea73
commit
7f384e9ff1
@ -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);
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user