[Lunar-commits] CVS: moonbase/net/net-tools/init.d network, 1.11,
1.12
Auke Kok
sofar at lunar-linux.org
Wed Oct 6 20:19:55 UTC 2004
Update of /var/cvs/lunar/moonbase/net/net-tools/init.d
In directory espresso.foo-projects.org:/tmp/cvs-serv18589
Modified Files:
network
Log Message:
Important fix: if you have Host-Gateways that's something else than a DEFAULT gateway. Specifically this only checks for the Default GW in the route table
Index: network
===================================================================
RCS file: /var/cvs/lunar/moonbase/net/net-tools/init.d/network,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- network 6 Oct 2004 16:05:51 -0000 1.11
+++ network 6 Oct 2004 20:19:52 -0000 1.12
@@ -255,7 +255,7 @@
done;
if [ -e /etc/config.d/gateway ]; then
GATEWAY=`cat /etc/config.d/gateway`
- if [ -n "$GATEWAY" -a ! $(route -n | grep $GATEWAY | wc -l) -ge 1 ]; then
+ if [ -n "$GATEWAY" ] && ! $(route -n | grep -qw 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