From: Michael Prokop Date: Sat, 28 Apr 2007 16:58:58 +0000 (+0200) Subject: Rewrote interfaces() code for handling of /etc/network/interfaces. X-Git-Tag: 0.9~3 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=12bcb2d7ae0cae32a05498a1599a95d36693eb3c Rewrote interfaces() code for handling of /etc/network/interfaces. --- diff --git a/chroot-script b/chroot-script index bc93353..9e1437f 100644 --- a/chroot-script +++ b/chroot-script @@ -270,13 +270,20 @@ hosts() { # set up /etc/network/interfaces {{{ interfaces() { - if ! [ -f /etc/network/interfaces ] ; then + touch /etc/network/interfaces + # make sure we add the entries only once + if ! grep -q eth0 /etc/network/interfaces ; then echo "Setting up /etc/network/interfaces" cat >> /etc/network/interfaces << EOF + +# loopback device: iface lo inet loopback -iface eth0 inet dhcp auto lo -auto eth0 + +# eth0: +# iface eth0 inet dhcp +# auto eth0 + EOF fi } diff --git a/debian/changelog b/debian/changelog index 7f16013..cbe968c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,8 @@ grml-debootstrap (0.9) unstable; urgency=low via GRMLREPOS and GRMLPACKAGES. * Use stage logic inside chroot-script as well. * Activate zsh completion. + * Rewrote interfaces() code for handling of + /etc/network/interfaces. Thanks for the pointer, formorer. -- Michael Prokop Mon, 23 Apr 2007 00:23:19 +0200