summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient-script
diff options
context:
space:
mode:
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