aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Tsoy <alexander@tsoy.me>2012-12-21 16:36:20 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2012-12-21 16:36:20 -0600
commita8ab9d63f5ea41a1e5821e22ae95f9fa92b96e4d (patch)
treed1619901517cd107c5c0dae9b2d6d5cae8f7969b
parent2b0ff6f669d2a05f4b092d8135ee17626c64c494 (diff)
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
-rw-r--r--net/ifconfig.sh.Linux.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ifconfig.sh.Linux.in b/net/ifconfig.sh.Linux.in
index 19e5c355..2afa66cb 100644
--- a/net/ifconfig.sh.Linux.in
+++ b/net/ifconfig.sh.Linux.in
@@ -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}"