ntp: fix wait for red if dhcp or wpasupplicant is running.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2016-09-27 20:15:53 +02:00
parent 3cf764f338
commit 829435bea3
2 changed files with 3 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ etc/rc.d/init.d/dhcp
etc/rc.d/init.d/network
etc/rc.d/init.d/networking/red.down/05-update-dns-forwarders
etc/rc.d/init.d/networking/red.up/05-update-dns-forwarders
etc/rc.d/init.d/ntp
etc/rc.d/init.d/unbound
etc/rc.d/rc0.d/K79unbound
etc/rc.d/rc3.d/S21unbound

View File

@@ -10,7 +10,8 @@ case "$1" in
start)
if [ "$ENABLESETONBOOT" == "on" ]; then
boot_mesg -n "Setting time on boot..."
if [ $(pidof wpa_supplicant dhcpcd) ]; then
pidof wpa_supplicant dhcpcd 2>&1 > /dev/null
if [ "${?}" == "0" ]; then
if [ ! -e /var/ipfire/red/active ]; then
boot_mesg ""
boot_mesg -n "Waiting for red connection"