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?
Infinite wait for network at boot doesn't work
Re: Infinite wait for network at boot doesn't work
Hi,Mlz wrote:infinite wait for network at boot in dietpi-config. raspberry pi boots up without a network connection
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'
Maybe the command is giving bad results, any chance you could replicate no connection boot and paste results of:
Code: Select all
route
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Re: Infinite wait for network at boot doesn't work
Not sure how to go about that since it is a headless server and I need it connected to run the route command.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
Re: Infinite wait for network at boot doesn't work
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
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
Depends on router, however, If the router provides a gateway, it should pass the connection wait.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?
You can test with:
Code: Select all
route | awk '{print $4}' | grep -ci -m1 'UG'
0 = gateway not available, DietPi will wait for the the above status, before continuing. Endless wait if boot_wait_for_network=2
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.