* [gentoo-commits] proj/netifrc:master commit in: net/
@ 2013-08-28 16:59 99% Robin H. Johnson
0 siblings, 0 replies; 1+ results
From: Robin H. Johnson @ 2013-08-28 16:59 UTC (permalink / raw
To: gentoo-commits
commit: d0a28ef9f91d74678fb8c40e66a63bacc9f01bac
Author: Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Wed Aug 28 16:50:13 2013 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Wed Aug 28 16:50:13 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/netifrc.git;a=commit;h=d0a28ef9
ifconfig: support ipv6 routes without default prefix.
ifconfig module does not support IPv6 routes without
default prefix, eg "-net ::/0"
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
X-Gentoo-Bug: 442594
---
net/ifconfig.sh.Linux.in | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/net/ifconfig.sh.Linux.in b/net/ifconfig.sh.Linux.in
index 2afa66c..b2203cb 100644
--- a/net/ifconfig.sh.Linux.in
+++ b/net/ifconfig.sh.Linux.in
@@ -208,9 +208,11 @@ _add_route()
set -- "${one}" "${two}" gw "$@"
fi
- case "$@" in
- *:*|default*) [ "$1" = "-net" -o "$1" = "-host" ] && shift;;
- esac
+ if [ "$1" = "-net" -o "$1" = "-host" ]; then
+ if [ "${2##*:}" != "$2" ]; then shift
+ elif [ "$2" = "default" ]; then shift
+ fi
+ fi
route ${family} add "$@" dev "${IFACE}"
}
^ permalink raw reply related [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2013-08-28 16:59 99% [gentoo-commits] proj/netifrc:master commit in: net/ Robin H. Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox