summaryrefslogtreecommitdiff
path: root/init.d/network.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/network.in')
-rw-r--r--init.d/network.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.d/network.in b/init.d/network.in
index f32bcb4..3beba1c 100644
--- a/init.d/network.in
+++ b/init.d/network.in
@@ -250,7 +250,8 @@ start()
if [ -n "$defaultroute" ]; then
ebegin "Setting default route $defaultroute"
- if [ "$RC_UNAME" = Linux ]; then
+ if [ "$RC_UNAME" = Linux -a \
+ "${defaultroute#dev }" = "$defaultroute" ]; then
route add default gw $defaultroute
else
route add default $defaultroute