mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
ntp: wait for connection if dhcpcd is running
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user