Not waiting for network on boot?

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
brtravel
Posts: 51
Joined: Sat Sep 16, 2017 2:04 pm

Not waiting for network on boot?

Post by brtravel »

I regularly turn off my modem, router, and C2 running dietpi, and I have an annoying minor problem that when I turn them back on at the same time the C2 is not connected to the network. If I let the modem and router boot up for about 30 seconds first, then plug in the C2, everything works perfectly. Presumably the C2 is booting up faster than the router and not finding a network.

I found the Network Options: NAS/Misc option to have it wait for a network connection, and I set that to Infinite wait... but the problem remains. Is this function not working, or what else could it be?
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Not waiting for network on boot?

Post by Fourdee »

Hi,

Possibly an issue with router not providing DHCP as expected, or incompatible command we use to check for valid route:

Code: Select all

route | awk '{print $4}' | grep -ci -m1 'UG'
#1=connected
#0=waiting
Have you tried setting static IP on the Odroid? Might be a valid workaround until core issue can be identified.
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.
brtravel
Posts: 51
Joined: Sat Sep 16, 2017 2:04 pm

Re: Not waiting for network on boot?

Post by brtravel »

Fourdee wrote:Have you tried setting static IP on the Odroid? Might be a valid workaround until core issue can be identified.
That worked, thanks!
Post Reply