]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
hostapd restart dhcp only if it is enabled for blue
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 18 Aug 2008 13:16:42 +0000 (15:16 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 18 Aug 2008 13:16:42 +0000 (15:16 +0200)
src/initscripts/init.d/hostapd

index e6149adcb458406af731fd25a092650b6dc5a8a2..bbdb24f44e0697edc1a98d0cb0b812aa6176ab36 100644 (file)
@@ -35,7 +35,9 @@ case "${1}" in
                # Bring blue up (but not at boot)
                if [ "$(basename $0)" == "hostapd" ]; then
                    /etc/rc.d/init.d/networking/blue start
-                   /etc/rc.d/init.d/dhcp restart
+                   if [ -f /var/ipfire/dhcp/enable_blue ]; then
+                       /etc/rc.d/init.d/dhcp restart
+                   fi
                fi
                 ;;