mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +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/firewall
|
||||||
etc/rc.d/init.d/functions
|
etc/rc.d/init.d/functions
|
||||||
etc/rc.d/init.d/networking/dhcpcd.exe
|
etc/rc.d/init.d/networking/dhcpcd.exe
|
||||||
|
etc/rc.d/init.d/ntp
|
||||||
etc/modprobe.d/nf_conntrack.conf
|
etc/modprobe.d/nf_conntrack.conf
|
||||||
lib/udev/rules.d/60-net.rules
|
lib/udev/rules.d/60-net.rules
|
||||||
srv/web/ipfire/cgi-bin/logs.cgi/firewalllog.dat
|
srv/web/ipfire/cgi-bin/logs.cgi/firewalllog.dat
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ case "$1" in
|
|||||||
start)
|
start)
|
||||||
if [ "$ENABLESETONBOOT" == "on" ]; then
|
if [ "$ENABLESETONBOOT" == "on" ]; then
|
||||||
boot_mesg -n "Setting time on boot..."
|
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
|
if [ ! -e /var/ipfire/red/active ]; then
|
||||||
boot_mesg ""
|
boot_mesg ""
|
||||||
boot_mesg -n "Wait for wlan"
|
boot_mesg -n "Waiting for red connection"
|
||||||
for (( i=30; i>1; i-- )) do
|
for (( i=30; i>1; i-- )) do
|
||||||
if [ -e /var/ipfire/red/active ]; then
|
if [ -e /var/ipfire/red/active ]; then
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user