diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-11 00:42:19 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-11 00:42:19 +0000 |
commit | ea0c65226a03f716c678bf1b911e3c89ffd2738c (patch) | |
tree | 9646246af21015665a8be00343540c8b98367dc1 /sbin/dhclient-script | |
parent | 8f687e4c0756dcceef078bc747efd486a13c348f (diff) | |
download | pfsense-ea0c65226a03f716c678bf1b911e3c89ffd2738c.zip pfsense-ea0c65226a03f716c678bf1b911e3c89ffd2738c.tar.gz |
Use variables
Diffstat (limited to 'sbin/dhclient-script')
-rwxr-xr-x | sbin/dhclient-script | 3 |
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 |