From: Victor Lowther Date: Fri, 6 Mar 2009 23:04:05 +0000 (-0600) Subject: Minor changes to network scripts to bring inline with my current patch series X-Git-Tag: 0.1~316 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=02d7fdcab4e16fc19ea22cc8d9b13614120addb9;p=thirdparty%2Fdracut.git Minor changes to network scripts to bring inline with my current patch series --- diff --git a/modules.d/40network/dhclient-script b/modules.d/40network/dhclient-script index 34d53edb5..dc2d9e1e1 100755 --- a/modules.d/40network/dhclient-script +++ b/modules.d/40network/dhclient-script @@ -2,8 +2,6 @@ # very simple dhclient-script. All it cares about is bringing the interface # up, and it does not even try to do anything else. -PATH="/sbin:$PATH" - case $reason in PREINIT) ip link set "$interface" up ;; BOUND) ipopts="$new_ip_address" diff --git a/modules.d/40network/ifup b/modules.d/40network/ifup index c22325d46..3878c416c 100755 --- a/modules.d/40network/ifup +++ b/modules.d/40network/ifup @@ -1,7 +1,7 @@ #!/bin/sh -PATH="/sbin:$PATH" - +# bail immediatly if the interface is already up +[ -f "/net.$1.up" ] && exit 0 # loopback is always handled the same way [ "$1" = "lo" ] && { @@ -33,4 +33,4 @@ for p in $(cat /proc/cmdline); do ) ;; *) continue;; esac -done +done \ No newline at end of file diff --git a/modules.d/40network/run-dhclient.sh b/modules.d/40network/run-dhclient.sh index 8cfbc0d8b..afab03700 100755 --- a/modules.d/40network/run-dhclient.sh +++ b/modules.d/40network/run-dhclient.sh @@ -1,11 +1,8 @@ #!/bin/sh -PATH="/sbin:$PATH" - - for i in /net.*.dhcp; do dev=${i#net.}; dev=${i%.dhcp} [ -f "/net.$dev.up" ] && continue dhclient -1 -q $dev & done wait - + \ No newline at end of file