aboutsummaryrefslogtreecommitdiff
path: root/init.d/network.in
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2009-12-10 22:08:51 +0000
committerRoy Marples <roy@marples.name>2009-12-10 22:08:51 +0000
commit12af86395ff3726789f72e96aa1367e2e428b972 (patch)
treeab0b28bfcb0f4ea390f022ac435f8253653a277c /init.d/network.in
parent5b3e5edda2d3cf114e298d8eb6eeb40f3b94b623 (diff)
Allow ip to add the default route.
Fixes #211.
Diffstat (limited to 'init.d/network.in')
-rw-r--r--init.d/network.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.d/network.in b/init.d/network.in
index 7bbe2535..0d53f14d 100644
--- a/init.d/network.in
+++ b/init.d/network.in
@@ -255,6 +255,10 @@ start()
route add default $defaultroute
fi
eend $?
+ elif [ -n "$defaultiproute" ]; then
+ ebegin "Setting default route $defauliptroute"
+ ip route add default via $defaultiproute
+ eend $?
fi
return 0