summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient-script
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-11 00:42:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-11 00:42:19 +0000
commitea0c65226a03f716c678bf1b911e3c89ffd2738c (patch)
tree9646246af21015665a8be00343540c8b98367dc1 /sbin/dhclient-script
parent8f687e4c0756dcceef078bc747efd486a13c348f (diff)
downloadpfsense-ea0c65226a03f716c678bf1b911e3c89ffd2738c.zip
pfsense-ea0c65226a03f716c678bf1b911e3c89ffd2738c.tar.gz
Use variables
Diffstat (limited to 'sbin/dhclient-script')
-rwxr-xr-xsbin/dhclient-script3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script
index 024d805..88f2604 100755
--- a/sbin/dhclient-script
+++ b/sbin/dhclient-script
@@ -22,6 +22,7 @@ NETSTAT=/usr/bin/netstat
GREP=/usr/bin/grep
AWK=/usr/bin/awk
HOSTNAME=/bin/hostname
+GREP=/usr/bin/grep
ROUTE=/sbin/route
SED=/usr/bin/sed
ARP=/usr/sbin/arp
@@ -143,7 +144,7 @@ add_new_routes() {
fi
# last ditch effort if no route exists.
- DEFAULTROUTE=`netstat -rn | grep default`
+ DEFAULTROUTE=`$NETSTAT -rn | $GREP default`
if [ -z "${DEFAULTROUTE}" ]; then
$ROUTE add default -iface $interface
fi
OpenPOWER on IntegriCloud