Page 1 of 1

Infinite wait for network at boot doesn't work

Posted: Tue May 09, 2017 9:39 pm
by Mlz
I selected the infinite wait for network at boot in dietpi-config. However, my raspberry pi boots up without a network connection until I powercycle it. I have updated my diet and I am on the latest version.
How do I resolve this?

Re: Infinite wait for network at boot doesn't work

Posted: Wed May 10, 2017 1:53 pm
by Fourdee
Mlz wrote:infinite wait for network at boot in dietpi-config. raspberry pi boots up without a network connection
Hi,

Thanks for report.

Unable to replicate on RPi 3 with eth unplugged and WiFi disabled.

Is eth plugged in on your system? WiFi disabled ?

The command we use to check a valid connection is:

Code: Select all

route | awk '{print $4}' | grep -ci -m1 'UG'
UG means UP and valid GATEWAY: http://www.thegeekstuff.com/2012/05/route-flags/?utm

Maybe the command is giving bad results, any chance you could replicate no connection boot and paste results of:

Code: Select all

route

Re: Infinite wait for network at boot doesn't work

Posted: Fri May 12, 2017 4:36 am
by Mlz
Fourdee wrote:
Maybe the command is giving bad results, any chance you could replicate no connection boot and paste results of:

Code: Select all

route
Not sure how to go about that since it is a headless server and I need it connected to run the route command.

Re: Infinite wait for network at boot doesn't work

Posted: Sat May 13, 2017 12:07 pm
by Mlz
Is there any script I can use to check for internet connection at boot and reboot if there is no connection?

Re: Infinite wait for network at boot doesn't work

Posted: Wed Oct 04, 2017 2:28 pm
by brtravel
I've got a question about this, is this simply waiting to be assigned an IP address from a router? If the router doesn't actually have an internet connection, will the device still continue with the boot?

Re: Infinite wait for network at boot doesn't work

Posted: Wed Oct 04, 2017 8:33 pm
by Fourdee
brtravel wrote:I've got a question about this, is this simply waiting to be assigned an IP address from a router? If the router doesn't actually have an internet connection, will the device still continue with the boot?
Depends on router, however, If the router provides a gateway, it should pass the connection wait.

You can test with:

Code: Select all

route | awk '{print $4}' | grep -ci -m1 'UG'
1 = gateway established, the net wait command would then exit, system resumed boot.
0 = gateway not available, DietPi will wait for the the above status, before continuing. Endless wait if boot_wait_for_network=2