X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=debian%2Fpatches%2F27_support_static_ip.patch;h=4c6896ff32bc29a7fd9386f2a36417932070dc3a;hb=7116647acd9c87a980e098b0179d8239904c19fd;hp=0ba3c7fc4b52a9493fef9ffee4f838c057b08350;hpb=447c0d1349b4c96c9161f837990cd9c98f7c5ced;p=live-boot-grml.git diff --git a/debian/patches/27_support_static_ip.patch b/debian/patches/27_support_static_ip.patch index 0ba3c7f..4c6896f 100644 --- a/debian/patches/27_support_static_ip.patch +++ b/debian/patches/27_support_static_ip.patch @@ -6,40 +6,9 @@ @DPATCH@ -Index: live-boot-grml/scripts/live -=================================================================== ---- live-boot-grml.orig/scripts/live 2011-12-06 22:10:37.000000000 +0100 -+++ live-boot-grml/scripts/live 2011-12-06 22:10:39.000000000 +0100 -@@ -110,9 +110,8 @@ - ;; - - ethdevice=*) -- DEVICE="${ARGUMENT#ethdevice=}" -- ETHDEVICE="${DEVICE}" -- export DEVICE ETHDEVICE -+ ETHDEVICE="${ARGUMENT#ethdevice=}" -+ export ETHDEVICE - ;; - - ethdevice-timeout=*) -@@ -179,13 +178,9 @@ - ;; - - ip=*) -- STATICIP="${ARGUMENT#ip=}" -- -- if [ -z "${STATICIP}" ] -- then -- STATICIP="frommedia" -- fi -- -+ # copy complete ip=args into staticip, and -+ # keep multiple uses. -+ STATICIP="${STATICIP} ${ARGUMENT}" - export STATICIP - ;; - -@@ -723,6 +718,24 @@ +--- a/scripts/live ++++ b/scripts/live +@@ -294,6 +294,24 @@ return 0 } @@ -64,7 +33,7 @@ Index: live-boot-grml/scripts/live do_netsetup () { modprobe -q af_packet # For DHCP -@@ -733,9 +746,19 @@ +@@ -304,9 +322,19 @@ [ -n "$ETHDEV_TIMEOUT" ] || ETHDEV_TIMEOUT=15 echo "Using timeout of $ETHDEV_TIMEOUT seconds for network configuration." @@ -87,7 +56,7 @@ Index: live-boot-grml/scripts/live # support for Syslinux IPAPPEND parameter -@@ -778,7 +801,7 @@ +@@ -349,7 +377,7 @@ if [ "$bootif_mac" = "$current_mac" ] then @@ -96,7 +65,7 @@ Index: live-boot-grml/scripts/live break fi fi -@@ -790,12 +813,7 @@ +@@ -361,12 +389,7 @@ # for *every* present network device (except for loopback of course) if [ -z "$ETHDEVICE" ] ; then echo "If you want to boot from a specific device use bootoption ethdevice=..." @@ -110,7 +79,7 @@ Index: live-boot-grml/scripts/live fi # split args of ethdevice=eth0,eth1 into "eth0 eth1" -@@ -803,38 +821,27 @@ +@@ -374,38 +397,27 @@ devlist="$devlist $device" done @@ -163,3 +132,34 @@ Index: live-boot-grml/scripts/live for interface in ${DEVICE}; do # source relevant ipconfig output +--- a/scripts/live-helpers ++++ b/scripts/live-helpers +@@ -93,9 +93,8 @@ + ;; + + ethdevice=*) +- DEVICE="${ARGUMENT#ethdevice=}" +- ETHDEVICE="${DEVICE}" +- export DEVICE ETHDEVICE ++ ETHDEVICE="${ARGUMENT#ethdevice=}" ++ export ETHDEVICE + ;; + + ethdevice-timeout=*) +@@ -162,13 +161,9 @@ + ;; + + ip=*) +- STATICIP="${ARGUMENT#ip=}" +- +- if [ -z "${STATICIP}" ] +- then +- STATICIP="frommedia" +- fi +- ++ # copy complete ip=args into staticip, and ++ # keep multiple uses. ++ STATICIP="${STATICIP} ${ARGUMENT}" + export STATICIP + ;; +