summaryrefslogtreecommitdiff
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
parentda94fad3f517c3b95c4eb1f3ee55bfe48b3f4783 (diff)
downloadopenrc-c18c74e816501b5eb41fc0e8ac92d4801454b861.tar.gz
openrc-c18c74e816501b5eb41fc0e8ac92d4801454b861.tar.bz2
openrc-c18c74e816501b5eb41fc0e8ac92d4801454b861.tar.xz
Fix adding just the default route, #119 thanks to pva.
-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 4dadee9..583c895 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