X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=blobdiff_plain;f=components%2F9990-grml-networking.sh;fp=components%2F9990-grml-networking.sh;h=ace078e92315afb97e1509ddee8811780b582f7a;hp=394d0111f2a9ab52153e523595c8862c228e4847;hb=52474b4c283033247a3cac42b5551d4380835e7a;hpb=27bc786ffea0c796827b628fb48fcdd755eace9d diff --git a/components/9990-grml-networking.sh b/components/9990-grml-networking.sh index 394d011..ace078e 100644 --- a/components/9990-grml-networking.sh +++ b/components/9990-grml-networking.sh @@ -8,6 +8,8 @@ if [ -n "${NONETWORKING}" ]; then return 0 fi +log_begin_msg "Preconfiguring Grml networking" + modprobe af_packet # req'd for DHCP # initialize udev @@ -37,7 +39,7 @@ fi # 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 @@ -47,8 +49,9 @@ EOF 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"