[Lunar-commits] r15173 - moonbase/trunk/net/net-tools/init.d
Auke Kok
sofar at lunar-linux.org
Mon May 30 17:26:06 UTC 2005
Author: sofar
Date: 2005-05-30 17:26:06 +0000 (Mon, 30 May 2005)
New Revision: 15173
Modified:
moonbase/trunk/net/net-tools/init.d/network
Log:
Bugfix #869: major typos and untested code by ME: gateway overwriting test.
Modified: moonbase/trunk/net/net-tools/init.d/network
===================================================================
--- moonbase/trunk/net/net-tools/init.d/network 2005-05-30 15:26:59 UTC (rev 15172)
+++ moonbase/trunk/net/net-tools/init.d/network 2005-05-30 17:26:06 UTC (rev 15173)
@@ -248,7 +248,7 @@
done;
if [ -e /etc/config.d/gateway ]; then
GATEWAY=`cat /etc/config.d/gateway`
- if [ -n "$GATEWAY" ] && ! $(route -n | grep "^0\.0\.0\.0.*UG.*$") ; then
+ if [ -n "$GATEWAY" ] && ! (route -n | grep -q "^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