dbailey: branch aadk r1145 - /branches/aadk/scripts/networking.sh
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Thu Jun 21 17:02:07 CDT 2007
Author: dbailey
Date: Thu Jun 21 17:02:06 2007
New Revision: 1145
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1145
Log:
Get rid of lookup for "default" when enumerating gateways
Modified:
branches/aadk/scripts/networking.sh
Modified: branches/aadk/scripts/networking.sh
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/scripts/networking.sh?view=diff&rev=1145&r1=1144&r2=1145
==============================================================================
--- branches/aadk/scripts/networking.sh (original)
+++ branches/aadk/scripts/networking.sh Thu Jun 21 17:02:06 2007
@@ -66,7 +66,7 @@
killall -HUP ${INETD_PROCNAME}
# Delete old default gateways in the routing table
-OLDGATEWAY=`route | grep default | grep UG | cut -c 17-32`
+OLDGATEWAY=`route -n | grep ^0.0.0.0 | grep UG | cut -c 17-32`
if [ "${OLDGATEWAY}" != "" ]; then
for i in $OLDGATEWAY; do
route delete default gw $i;
More information about the asterisk-gui-commits
mailing list