[Lunar-commits] <moonbase> lunar-init: Fix wpa_supplicant D-Bus detection.

Jannis Pohlmann jannis at lunar-linux.org
Mon Mar 9 16:55:12 CET 2009


commit 7fb0f383b96246f14b2fc2f35556e70e327c7bc0
Author: Jannis Pohlmann <jannis at lunar-linux.org>
Date:   Mon Mar 9 16:55:12 2009 +0100

    lunar-init: Fix wpa_supplicant D-Bus detection.
---
 utils/lunar-init/network |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/utils/lunar-init/network b/utils/lunar-init/network
index 4847c17..5c8fa13 100644
--- a/utils/lunar-init/network
+++ b/utils/lunar-init/network
@@ -148,8 +148,10 @@ function device_start()
 			$IWCONFIG $1 essid any
 
 			# enable D-Bus control interface if D-Bus is running
-			if [ -x "/etc/init.d/messagebus" ] && [ $(/etc/init.d/messagebus/status) -eq 0 ]; then
-			  WPA_SUPPLICANT_FLAGS="$WPA_SUPPLICANT_FLAGS -u"
+			if [ -x "/etc/init.d/messagebus" ]; then
+				if (/etc/init.d/messagebus status | grep OK) &>/dev/null; then
+					WPA_SUPPLICANT_FLAGS="$WPA_SUPPLICANT_FLAGS -u"
+				fi
 			fi
 
 			# FIXME: Make the config file configurable. 


More information about the Lunar-commits mailing list