From 7f384e9ff1af18c6276dadd2cbef284d4a90a48b Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 1 Nov 2019 09:10:24 +0000 Subject: [PATCH] Abbreviate serviceStatus for small devices --- includes/dhcp.php | 2 +- includes/hostapd.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {