X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Fpatches%2F26_support_dns_bootoption.patch;h=2a5c862eda753ded889baa1320fe57ceb38d0812;hb=a488db657ecb072da4144790ccdeae04616b409f;hp=3df83d70fc0ed3c535037f84ee39a078943af363;hpb=6ac1aac5fcd96ce1e986e64884bd8c16a7aa9ea8;p=live-boot-grml.git diff --git a/debian/patches/26_support_dns_bootoption.patch b/debian/patches/26_support_dns_bootoption.patch index 3df83d7..2a5c862 100644 --- a/debian/patches/26_support_dns_bootoption.patch +++ b/debian/patches/26_support_dns_bootoption.patch @@ -5,33 +5,19 @@ ## DP: Support dns bootoption. Usage examples: dns=8.8.8.8 / dns=8.8.8.8,1.2.3.4 @DPATCH@ -Index: b/scripts/live -=================================================================== ---- a/scripts/live 2011-07-24 22:08:11.000000000 +0200 -+++ b/scripts/live 2011-07-24 22:08:13.000000000 +0200 -@@ -77,6 +77,18 @@ - BOOTIF="${x#BOOTIF=}" - ;; +--- a/scripts/live ++++ b/scripts/live +@@ -429,7 +429,7 @@ + echo "search ${DNSDOMAIN}" >> /etc/resolv.conf + fi -+ dns=*) -+ DNSSERVER="${ARGUMENT#*=}" -+ if echo "${DNSSERVER}" | grep -q , ; then -+ DNSSERVER1="${DNSSERVER%,*}" -+ DNSSERVER2="${DNSSERVER#*,}" -+ export DNSSERVER1 DNSSERVER2 -+ else -+ DNSSERVER1="$DNSSERVER" -+ export DNSSERVER1 -+ fi -+ unset DNSSERVER -+ ;; - debug) - DEBUG="Yes" - export DEBUG -Index: b/scripts/live-bottom/23networking_grml -=================================================================== ---- a/scripts/live-bottom/23networking_grml 2011-07-24 22:08:07.000000000 +0200 -+++ b/scripts/live-bottom/23networking_grml 2011-07-24 22:08:13.000000000 +0200 +- for i in ${IPV4DNS0} ${IPV4DNS1} ${IPV4DNS1} ++ for i in ${IPV4DNS0} ${IPV4DNS1} ${IPV4DNS1} ${DNSSERVER1} ${DNSSERVER2} + do + if [ -n "$i" ] && [ "$i" != 0.0.0.0 ] + then +--- a/scripts/live-bottom/23networking_grml ++++ b/scripts/live-bottom/23networking_grml @@ -44,7 +44,12 @@ # prepare a new /etc/network/interfaces file (and, possibly, a new /etc/resolv.conf) @@ -64,3 +50,25 @@ Index: b/scripts/live-bottom/23networking_grml + echo "nameserver $i" >> $RESOLVCONF + done +fi +--- a/scripts/live-helpers ++++ b/scripts/live-helpers +@@ -59,6 +59,19 @@ + BOOTIF="${x#BOOTIF=}" + ;; + ++ dns=*) ++ DNSSERVER="${ARGUMENT#*=}" ++ if echo "${DNSSERVER}" | grep -q , ; then ++ DNSSERVER1="${DNSSERVER%,*}" ++ DNSSERVER2="${DNSSERVER#*,}" ++ export DNSSERVER1 DNSSERVER2 ++ else ++ DNSSERVER1="$DNSSERVER" ++ export DNSSERVER1 ++ fi ++ unset DNSSERVER ++ ;; ++ + debug) + DEBUG="Yes" + export DEBUG