]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
add /sbin to $PATH
authorHarald Hoyer <harald@redhat.com>
Fri, 6 Mar 2009 13:36:18 +0000 (14:36 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 6 Mar 2009 13:36:18 +0000 (14:36 +0100)
modules.d/40network/dhclient-script
modules.d/40network/ifup
modules.d/40network/run-dhclient.sh

index dc2d9e1e13441c4fb9f72aa0c52edd49c66ffaa3..34d53edb5a242329a0c42a95437cd4f09f57a0e1 100755 (executable)
@@ -2,6 +2,8 @@
 # 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"
index 83f65229fd6c2b7d7c8f60081d43071b9ae339f4..c22325d46550e33a006a979b70f7b024b7735f46 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/sh
 
+PATH="/sbin:$PATH"
+
+
 # loopback is always handled the same way
 [ "$1" = "lo" ] && {
     ip link set lo up
@@ -30,4 +33,4 @@ for p in $(cat /proc/cmdline); do
                ) ;;
        *) continue;;
     esac
-done
\ No newline at end of file
+done
index afab037006e21422ec16192267bf88e6f0c4e9ca..8cfbc0d8bcfcb98609df9b9f024f28b6043e1f42 100755 (executable)
@@ -1,8 +1,11 @@
 #!/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
+