X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=components%2F9990-grml-networking.sh;h=b899461b558071967097f7094cf43172d732d526;hb=HEAD;hp=ace078e92315afb97e1509ddee8811780b582f7a;hpb=52474b4c283033247a3cac42b5551d4380835e7a;p=live-boot-grml.git diff --git a/components/9990-grml-networking.sh b/components/9990-grml-networking.sh index ace078e..b899461 100644 --- a/components/9990-grml-networking.sh +++ b/components/9990-grml-networking.sh @@ -39,7 +39,11 @@ fi # config for loopback networking cat > $IFFILE << EOF -# Initially generated on boot by initramfs +# Initially generated on boot by initramfs, +# interfaces(5) file used by ifup(8) and ifdown(8) + +# Include files from /etc/network/interfaces.d: +source /etc/network/interfaces.d/* auto lo iface lo inet loopback @@ -51,8 +55,8 @@ unset HOSTNAME # generate config for each present network device for interface in /sys/class/net/* ; do [ -e ${interface} ] || continue - [ "${interface}" = "lo" ] && continue interface=$(basename ${interface}) + [ "${interface}" = "lo" ] && continue method="dhcp" # NODHCP or a previously run ipconfig mean that ifupdown should never