Fix static IPv6 routes, #187514.
This commit is contained in:
parent
a3aff5d83c
commit
65a9e4618b
@ -1,6 +1,10 @@
|
|||||||
# ChangeLog for Gentoo System Intialization ("rc") scripts
|
# ChangeLog for Gentoo System Intialization ("rc") scripts
|
||||||
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2
|
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2
|
||||||
|
|
||||||
|
03 Aug 2007; Roy Marples <uberlord@gentoo.org>:
|
||||||
|
|
||||||
|
Fix static IPv6 routes, #187514.
|
||||||
|
|
||||||
* baselayout-2.0.0_rc1 (02 Aug 2007)
|
* baselayout-2.0.0_rc1 (02 Aug 2007)
|
||||||
|
|
||||||
01 Aug 2007; Mike Frysinger <vapier@gentoo.org>:
|
01 Aug 2007; Mike Frysinger <vapier@gentoo.org>:
|
||||||
|
@ -161,6 +161,12 @@ _add_address() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_add_route() {
|
_add_route() {
|
||||||
|
local inet6=
|
||||||
|
|
||||||
|
if [ -n "${metric}" ] ; then
|
||||||
|
set -- "$@" metric ${metric}
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $# -eq 3 ] ; then
|
if [ $# -eq 3 ] ; then
|
||||||
set -- "$1" "$2" gw "$3"
|
set -- "$1" "$2" gw "$3"
|
||||||
elif [ "$3" = "via" ] ; then
|
elif [ "$3" = "via" ] ; then
|
||||||
@ -169,11 +175,14 @@ _add_route() {
|
|||||||
set -- "${one}" "${two}" gw "$@"
|
set -- "${one}" "${two}" gw "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${metric}" ] ; then
|
case "$@" in
|
||||||
set -- "$@" metric ${metric}
|
*:*)
|
||||||
fi
|
inet6="-A inet6"
|
||||||
|
[ "$1" = "-net" ] && shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
route add "$@"
|
route ${inet6} add "$@" dev "${IFACE}"
|
||||||
}
|
}
|
||||||
|
|
||||||
_delete_addresses() {
|
_delete_addresses() {
|
||||||
|
Loading…
Reference in New Issue
Block a user