summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient-script
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-10 22:22:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-10 22:22:07 +0000
commit240030098b2b6a283f4e945b6d720351758d22ea (patch)
tree668fc15f411eaa8c11115ed6ab9ea2166497b122 /sbin/dhclient-script
parentf968bb86fd0bafaab33a68d571e07a17b7846fb2 (diff)
downloadpfsense-240030098b2b6a283f4e945b6d720351758d22ea.zip
pfsense-240030098b2b6a283f4e945b6d720351758d22ea.tar.gz
use full path to sed, sleep, etc
Diffstat (limited to 'sbin/dhclient-script')
-rwxr-xr-xsbin/dhclient-script13
1 files changed, 8 insertions, 5 deletions
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"
OpenPOWER on IntegriCloud