ntp: wait for connection if dhcpcd is running

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2016-03-18 19:26:39 +01:00
parent 8a148bbc5a
commit 96e31c9817
2 changed files with 3 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ etc/ppp/ip-up
etc/rc.d/init.d/firewall
etc/rc.d/init.d/functions
etc/rc.d/init.d/networking/dhcpcd.exe
etc/rc.d/init.d/ntp
etc/modprobe.d/nf_conntrack.conf
lib/udev/rules.d/60-net.rules
srv/web/ipfire/cgi-bin/logs.cgi/firewalllog.dat

View 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;