From 02c12c1caced4c2393e2ca15efdaca56d5f0d452 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 14 Dec 2009 19:01:03 +0000 Subject: Allow "dev eth0" to work for a default route. --- init.d/network.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'init.d') diff --git a/init.d/network.in b/init.d/network.in index f32bcb4d..3beba1ca 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 -- cgit v1.2.3