X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=debian%2Fpatches%2F15_networking_grml.dpatch;h=81b4c0dbeadcfa165a6450ca5e769a85d33d3637;hb=ac134a9f5c0342bc0eb332b6e06494d348fb5ef1;hp=99db73f90718e7fdb9adb337d56f08e1dd33b161;hpb=8135c86825b9ae78078eb3ebe5a91a706911361c;p=live-boot-grml.git diff --git a/debian/patches/15_networking_grml.dpatch b/debian/patches/15_networking_grml.dpatch index 99db73f..81b4c0d 100755 --- a/debian/patches/15_networking_grml.dpatch +++ b/debian/patches/15_networking_grml.dpatch @@ -11,7 +11,7 @@ diff a/scripts/live-bottom/23networking_grml b/scripts/live-bottom/23networking_grml --- /dev/null +++ b/scripts/live-bottom/23networking_grml -@@ -0,0 +1,102 @@ +@@ -0,0 +1,107 @@ +#!/bin/sh + +#set -e @@ -69,6 +69,8 @@ diff a/scripts/live-bottom/23networking_grml b/scripts/live-bottom/23networking_ + +EOF + ++unset HOSTNAME ++ +# generate config for each present network device +for interface in /sys/class/net/eth* /sys/class/net/ath* /sys/class/net/wlan*; do + [ -e ${interface} ] || continue @@ -107,10 +109,14 @@ diff a/scripts/live-bottom/23networking_grml b/scripts/live-bottom/23networking_ + done + fi + fi ++ ++ if [ -z "$NODHCPHOSTNAME" -a -n "$HOSTNAME" ]; then ++ echo $HOSTNAME > /root/etc/hostname ++ fi ++ + unset DEVICE IPV4ADDR IPV4BROADCAST IPV4NETMASK IPV4GATEWAY IPV4DNS0 IPV4DNS1 HOSTNAME DNSDOMAIN NISDOMAIN ROOTSERVER ROOTPATH filename + unset IPV4DNS IPV4DNSLIST + + echo>> $IFFILE +done + -+