X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Fpatches%2F26_support_dns_bootoption.patch;h=0da7f733199f794d9e8ec195cd6542f1672f43c9;hb=fdf285d157bf1558728e0b6b6bea3b4f78a7b108;hp=1e17c3e72637ac8920f67451f850b67b55e9f7b6;hpb=3b3ac7b387df59cc871f6572344f249a203b371c;p=live-boot-grml.git diff --git a/debian/patches/26_support_dns_bootoption.patch b/debian/patches/26_support_dns_bootoption.patch index 1e17c3e..0da7f73 100644 --- a/debian/patches/26_support_dns_bootoption.patch +++ b/debian/patches/26_support_dns_bootoption.patch @@ -18,43 +18,6 @@ Index: live-boot-grml/components/9990-networking.sh do if [ -n "$i" ] && [ "$i" != 0.0.0.0 ] then -Index: live-boot-grml/components/9990-grml-networking.sh -=================================================================== ---- live-boot-grml.orig/components/9990-grml-networking.sh 2014-03-08 13:33:11.615385566 +0100 -+++ live-boot-grml/components/9990-grml-networking.sh 2014-03-08 13:33:11.611386038 +0100 -@@ -28,7 +28,12 @@ - - # prepare a new /etc/network/interfaces file (and, possibly, a new /etc/resolv.conf) - IFFILE="/root/etc/network/interfaces" --RESOLVCONF="/root/etc/resolv.conf" -+if [ -L /root/etc/resolv.conf ] ; then -+ # assume we have resolvconf -+ RESOLVCONF=/root/etc/resolvconf/resolv.conf.d/base -+else -+ RESOLVCONF="/root/etc/resolv.conf" -+fi - - # config for loopback networking - cat > $IFFILE << EOF -@@ -90,4 +95,18 @@ - echo>> $IFFILE - done - -+# dns bootoption -+if [ -n "$DNSSERVER1" ] -+then -+ # disable any existing entries -+ if [ -r $RESOLVCONF ] -+ then -+ sed -i 's/nameserver/# nameserver/' $RESOLVCONF -+ fi -+ for i in $DNSSERVER1 $DNSSERVER2 -+ do -+ echo "nameserver $i" >> $RESOLVCONF -+ done -+fi -+ - } Index: live-boot-grml/components/9990-cmdline-old =================================================================== --- live-boot-grml.orig/components/9990-cmdline-old 2014-03-08 13:33:11.615385566 +0100