* By displaying "Preconfiguring Grml networking" it's more
explicit that we're running the 9990-grml-networking.sh code
* It's not the 23networking live-initramfs hook since quite some time,
update the comment for generation of /etc/network/interfaces
* Support also new style network device names by iterating over
/sys/class/net/* and skipping only the loopback interface
return 0
fi
+log_begin_msg "Preconfiguring Grml networking"
+
modprobe af_packet # req'd for DHCP
# initialize udev
# config for loopback networking
cat > $IFFILE << EOF
-# Initially generated on boot by initramfs' 23networking.
+# Initially generated on boot by initramfs
auto lo
iface lo inet loopback
unset HOSTNAME
# generate config for each present network device
-for interface in /sys/class/net/eth* /sys/class/net/ath* /sys/class/net/wlan*; do
+for interface in /sys/class/net/* ; do
[ -e ${interface} ] || continue
+ [ "${interface}" = "lo" ] && continue
interface=$(basename ${interface})
method="dhcp"