From 9ec23437fad6cee974784584edab58c5e2d8470f Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 6 Mar 2009 14:36:18 +0100 Subject: [PATCH] add /sbin to $PATH --- modules.d/40network/dhclient-script | 2 ++ modules.d/40network/ifup | 5 ++++- modules.d/40network/run-dhclient.sh | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/modules.d/40network/dhclient-script b/modules.d/40network/dhclient-script index dc2d9e1e1..34d53edb5 100755 --- a/modules.d/40network/dhclient-script +++ b/modules.d/40network/dhclient-script @@ -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" diff --git a/modules.d/40network/ifup b/modules.d/40network/ifup index 83f65229f..c22325d46 100755 --- a/modules.d/40network/ifup +++ b/modules.d/40network/ifup @@ -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 diff --git a/modules.d/40network/run-dhclient.sh b/modules.d/40network/run-dhclient.sh index afab03700..8cfbc0d8b 100755 --- a/modules.d/40network/run-dhclient.sh +++ b/modules.d/40network/run-dhclient.sh @@ -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 + -- 2.47.3