ifconfig.sh.Linux.in: fix ipv6 routes and default route

Do not add -net or -host to ipv6 routes or to the default route when
using route from net-tools.

X-Gentoo-Bug: 442594
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=442594
This commit is contained in:
Alexander Tsoy 2012-12-21 16:36:20 -06:00 committed by William Hubbs
parent 2b0ff6f669
commit a8ab9d63f5

View File

@ -209,7 +209,7 @@ _add_route()
fi
case "$@" in
*:*) [ "$1" = "-net" ] && shift;;
*:*|default*) [ "$1" = "-net" -o "$1" = "-host" ] && shift;;
esac
route ${family} add "$@" dev "${IFACE}"