diff options
Diffstat (limited to 'sbin')
-rwxr-xr-x | sbin/dhclient-script | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script index 35ce76f..132946d 100755 --- a/sbin/dhclient-script +++ b/sbin/dhclient-script @@ -211,9 +211,8 @@ if [ -f /etc/dhclient-enter-hooks ]; then fi fi -if [ -x $NETSTAT ]; then - $LOGGER "netstat" - if_defaultroute=`$NETSTAT -rn | $GREP "^default" | $AWK '{print $6}'` +if [ -x $ROUTE ]; then + if_defaultroute=`$ROUTE get default | $GREP interface | $AWK '{print $2}'` else $LOGGER "if_defaultroute" if_defaultroute="x" |