Allow "dev eth0" to work for a default route.
This commit is contained in:
parent
084f5e12eb
commit
02c12c1cac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user