[Lunar-commits] CVS: moonbase/net/net-tools/init.d network, 1.14, 1.15

Auke Kok sofar at lunar-linux.org
Sun Mar 13 22:33:28 UTC 2005


Update of /var/cvs/lunar/moonbase/net/net-tools/init.d
In directory espresso.foo-projects.org:/tmp/cvs-serv5666

Modified Files:
	network 
Log Message:
MEH


Index: network
===================================================================
RCS file: /var/cvs/lunar/moonbase/net/net-tools/init.d/network,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- network	13 Mar 2005 22:29:35 -0000	1.14
+++ network	13 Mar 2005 22:33:26 -0000	1.15
@@ -248,7 +248,7 @@
 	    done;
 	    if [ -e /etc/config.d/gateway ]; then
 	       GATEWAY=`cat /etc/config.d/gateway`
-	       if [ -n "$GATEWAY" ] && ! $(route -n | "^0\.0\.0\.0.*UG.*$") ; then
+	       if [ -n "$GATEWAY" ] && ! $(route -n | grep "^0\.0\.0\.0.*UG.*$") ; then
 	           echo -n " * setting default route: "
 	           if [ ! -x /sbin/route ]; then
 	            echo -n "route not installed";



More information about the Lunar-commits mailing list