version 1.154, 2015/09/11 12:21:52 |
version 1.155, 2015/09/13 13:51:57 |
|
|
# IPv6 autoconf the interfaces in the list at $rtsolif |
# IPv6 autoconf the interfaces in the list at $rtsolif |
# Usage: ifautoconf |
# Usage: ifautoconf |
ifautoconf() { |
ifautoconf() { |
printf 'IPv6 autoconf:' |
if [[ -n $rtsolif ]]; then |
# $ip6kernel will not have been set if we were invoked with a |
printf 'IPv6 autoconf:' |
# list of interface names |
# $ip6kernel will not have been set if we were invoked with a |
if ifconfig lo0 inet6 >/dev/null 2>&1; then |
# list of interface names |
for curif in $rtsolif; do |
if ifconfig lo0 inet6 >/dev/null 2>&1; then |
printf ' %s' $curif |
for curif in $rtsolif; do |
ifconfig $curif inet6 autoconf |
printf ' %s' $curif |
done |
ifconfig $curif inet6 autoconf |
|
done |
|
fi |
|
echo |
fi |
fi |
echo |
|
} |
} |
|
|
# Get network related vars from rc.conf using the parsing routine from rc.subr. |
# Get network related vars from rc.conf using the parsing routine from rc.subr. |