aboutsummaryrefslogtreecommitdiff
path: root/init.d/network.in
diff options
context:
space:
mode:
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