X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Fpatches%2F27_support_static_ip.patch;h=a3fbdb50cee2ce859a80382732ba7af7552a1a73;hb=5c38cc138fcb792c1a25d0c050725c74cee7d153;hp=0bef1cbf1fecad9fddf30745e7ce0b553a2873a4;hpb=6d32dfe093885e3a10150ecc986501d7cb1c7d01;p=live-boot-grml.git diff --git a/debian/patches/27_support_static_ip.patch b/debian/patches/27_support_static_ip.patch index 0bef1cb..a3fbdb5 100644 --- a/debian/patches/27_support_static_ip.patch +++ b/debian/patches/27_support_static_ip.patch @@ -79,7 +79,7 @@ fi # split args of ethdevice=eth0,eth1 into "eth0 eth1" -@@ -374,38 +397,29 @@ +@@ -374,43 +397,34 @@ devlist="$devlist $device" done @@ -110,8 +110,8 @@ - export DEVICE="$dev" - break + IPV4ADDR="0.0.0.0" -+ if [ -e "/tmp/net-${device}.conf" ]; then -+ . /tmp/net-${device}.conf ++ if [ -e "/run/net-${device}.conf" ]; then ++ . /run/net-${device}.conf + fi + if [ "${IPV4ADDR}" != "0.0.0.0" ]; then + export DEVICE="$dev $DEVICE" @@ -134,6 +134,12 @@ for interface in ${DEVICE}; do # source relevant ipconfig output + OLDHOSTNAME=${HOSTNAME} +- [ -e /tmp/net-${interface}.conf ] && . /tmp/net-${interface}.conf ++ [ -e /run/net-${interface}.conf ] && . /run/net-${interface}.conf + [ -z ${HOSTNAME} ] && HOSTNAME=${OLDHOSTNAME} + export HOSTNAME + --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -93,9 +93,8 @@