diff --git a/includes/dhcp.php b/includes/dhcp.php index 04b7dab9..638efda1 100755 --- a/includes/dhcp.php +++ b/includes/dhcp.php @@ -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); diff --git a/includes/hostapd.php b/includes/hostapd.php index 18a742e0..69c28216 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -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) {