mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 20:16:49 +02:00
ntp: wait for connection if dhcpcd is running
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -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