Allow "dev eth0" to work for a default route.

This commit is contained in:
Roy Marples 2009-12-14 19:01:03 +00:00
parent 084f5e12eb
commit 02c12c1cac

View File

@ -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