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

@@ -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"