Refresh debian/patches/35_fix_findiso_umount.patch
[live-boot-grml.git] / debian / patches / 27_support_static_ip.patch
index 4c6896f..a3fbdb5 100644 (file)
@@ -79,7 +79,7 @@
        fi
  
        # split args of ethdevice=eth0,eth1 into "eth0 eth1"
-@@ -374,38 +397,27 @@
+@@ -374,43 +397,34 @@
                devlist="$devlist $device"
        done
  
 -                      export DEVICE="$dev"
 -                      break
 +              IPV4ADDR="0.0.0.0"
-+              . /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"
 +                      # break  # exit loop as we just use the irst
  
        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 @@