dbailey: branch aadk r1156 - /branches/aadk/scripts/networking.sh

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Fri Jun 22 14:45:26 CDT 2007


Author: dbailey
Date: Fri Jun 22 14:45:26 2007
New Revision: 1156

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1156
Log:
Added more definitive filter for grep of route command result 

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=1156&r1=1155&r2=1156
==============================================================================
--- branches/aadk/scripts/networking.sh (original)
+++ branches/aadk/scripts/networking.sh Fri Jun 22 14:45:26 2007
@@ -66,7 +66,7 @@
 killall -HUP ${INETD_PROCNAME}
 
 # Delete old default gateways in the routing table 
-OLDGATEWAY=`route -n | grep 0.0.0.0 | 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