From 240030098b2b6a283f4e945b6d720351758d22ea Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 10 Sep 2005 22:22:07 +0000 Subject: use full path to sed, sleep, etc --- sbin/dhclient-script | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'sbin') diff --git a/sbin/dhclient-script b/sbin/dhclient-script index 8d40ea8..1aee3d9 100755 --- a/sbin/dhclient-script +++ b/sbin/dhclient-script @@ -23,6 +23,9 @@ GREP=/usr/bin/grep AWK=/usr/bin/awk HOSTNAME=/bin/hostname ROUTE=/sbin/route +SED=/usr/bin/sed +ARP=/usr/sbin/arp + LOCALHOST=127.0.0.1 if [ -x /usr/bin/logger ]; then @@ -48,9 +51,9 @@ check_hostname() { } arp_flush() { - arp -an -i $interface | \ - sed -n -e 's/^.*(\(.*\)) at .*$/arp -d \1/p' | \ - sh >/dev/null 2>&1 + $ARP -an -i $interface | \ + $SED -n -e 's/^.*(\(.*\)) at .*$/arp -d \1/p' | \ + /bin/sh >/dev/null 2>&1 } delete_old_address() { @@ -180,7 +183,7 @@ case $reason in MEDIUM) ifconfig $interface $medium ifconfig $interface inet -alias 0.0.0.0 $medium >/dev/null 2>&1 - sleep 1 + /bin/sleep 1 ;; PREINIT) @@ -232,7 +235,7 @@ EXPIRE|FAIL) TIMEOUT) delete_old_alias add_new_address - sleep 1 + /bin/sleep 1 if [ -n "$new_routers" ]; then $LOGGER "New Routers ($interface): $new_routers" set "$new_routers" -- cgit v1.1