- # Our modus operandi for getting a working network setup is this:
- # * If ip=* is set, pass that to ipconfig and be done
- # * Else, try dhcp on all devices in this order:
- # ethdevice= bootif= <all interfaces>
-
- ALLDEVICES="$(cd /sys/class/net/ && ls -1 2>/dev/null | grep -v '^lo$' )"
-
- # Turn on all interfaces before doing anything, to avoid timing problems
- # during link negotiation.
- echo "Net: Turning on all device links..."
- for device in ${ALLDEVICES}; do
- ipconfig -c none -d $device -t 1 2>/dev/null >/dev/null
- done
-