Ethernet interfaces slow to start at boot

I have Debian testing installed on a machine with two network cards.

On boot these cards take some time to become operational. Because of this some daemons fail to start (most notably dhcpd) since the network interface they need is not available yet.

To remedy this problem I have created a simple script in /etc/init.d called delay which simply contains:

#!/bin/sh
echo Delaying boot by 30 seconds so eth0 and eth1 can come up properly...
sleep 30

Then I have created a symlink in /etc/rcS.d to this script. I call the symlink S41delay since the network should be available after S40 according to documentation.

This actually works. But the question is: Is there a better / more correct way of doing this?
LVL 2
GieronAsked:
Who is Participating?
 
pablouruguayConnect With a Mentor Commented:
i think so,  you can delay your network script move to S99network to start the network but the result are the same. i use this solution too in laptos with this problems
0
All Courses

From novice to tech pro — start learning today.