Fix adding multiple IP addresses, #187526.
This commit is contained in:
parent
65a9e4618b
commit
9169c51d39
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
03 Aug 2007; Roy Marples <uberlord@gentoo.org>:
|
03 Aug 2007; Roy Marples <uberlord@gentoo.org>:
|
||||||
|
|
||||||
|
Fix adding multiple IP addresses, #187526.
|
||||||
Fix static IPv6 routes, #187514.
|
Fix static IPv6 routes, #187514.
|
||||||
|
|
||||||
* baselayout-2.0.0_rc1 (02 Aug 2007)
|
* baselayout-2.0.0_rc1 (02 Aug 2007)
|
||||||
|
@ -78,6 +78,12 @@ _get_inet_address() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_add_address() {
|
_add_address() {
|
||||||
|
local inet6=
|
||||||
|
|
||||||
|
case "$@" in
|
||||||
|
*:*) inet6=inet6 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
if [ "${metric:-0}" != "0" ] ; then
|
if [ "${metric:-0}" != "0" ] ; then
|
||||||
set -- "$@" metric ${metric}
|
set -- "$@" metric ${metric}
|
||||||
fi
|
fi
|
||||||
@ -94,10 +100,7 @@ _add_address() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$@" in
|
ifconfig "${IFACE}" ${inet6} alias "$@"
|
||||||
*:*) ifconfig "${IFACE}" inet6 "$@" ;;
|
|
||||||
*) ifconfig "${IFACE}" "$@" ;;
|
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_add_route() {
|
_add_route() {
|
||||||
|
Loading…
Reference in New Issue
Block a user