]> git.ipfire.org Git - people/jschlag/ipfire-2.x.git/blobdiff - src/initscripts/init.d/ntp
ntp: wait for connection if dhcpcd is running
[people/jschlag/ipfire-2.x.git] / src / initscripts / init.d / ntp
index 548b4c4d05eca0d763aa9f8dab43b1a6592cee5b..a746c1eb0ff377a5a48d71e51fb1323654ab880b 100644 (file)
@@ -10,10 +10,10 @@ case "$1" in
        start)
                if [ "$ENABLESETONBOOT" == "on" ]; then
                        boot_mesg -n "Setting time on boot..."
-                       if [ $(pidof wpa_supplicant) ]; then
+                       if [ $(pidof wpa_supplicant dhcpcd) ]; then
                                if [ ! -e /var/ipfire/red/active ]; then
                                        boot_mesg ""
-                                       boot_mesg -n "Wait for wlan"
+                                       boot_mesg -n "Waiting for red connection"
                                        for (( i=30; i>1; i-- )) do
                                                if [ -e /var/ipfire/red/active ]; then
                                                        break;