aboutsummaryrefslogtreecommitdiff
path: root/init.d/net.lo.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-10-14 15:27:52 +0000
committerRoy Marples <roy@marples.name>2008-10-14 15:27:52 +0000
commitc18c74e816501b5eb41fc0e8ac92d4801454b861 (patch)
tree3b8be183c6ec47ca587e151c1472bd88a96927b9 /init.d/net.lo.in
parentda94fad3f517c3b95c4eb1f3ee55bfe48b3f4783 (diff)
Fix adding just the default route, #119 thanks to pva.
Diffstat (limited to 'init.d/net.lo.in')
-rw-r--r--init.d/net.lo.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in
index 4dadee91..583c8958 100644
--- a/init.d/net.lo.in
+++ b/init.d/net.lo.in
@@ -581,7 +581,8 @@ ${routes}"
-net" "*|-host" "*);;
*" "netmask" "*) cmd="-net ${cmd}";;
*.*.*.*/32*) cmd="-host ${cmd}";;
- *.*.*.*/*|0.0.0.0" "*|default" "*) cmd="-net ${cmd}";;
+ *.*.*.*/*|0.0.0.0|0.0.0.0" "*) cmd="-net ${cmd}";;
+ default|default" "*) cmd="-net ${cmd}";;
*) cmd="-host ${cmd}";;
esac
if ${hidefirstroute}; then