diff options
author | ume <ume@FreeBSD.org> | 2001-03-18 16:07:21 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2001-03-18 16:07:21 +0000 |
commit | 3d620f4db959d94aa8ba6c0034aae70404b1a508 (patch) | |
tree | 15d8c66dec69d546b5716f1cb02f44df3fdd6278 /etc/rc.d | |
parent | 454ff5686f62ac6f0273ae09f0d585fb3e3e7aa9 (diff) | |
download | FreeBSD-src-3d620f4db959d94aa8ba6c0034aae70404b1a508.zip FreeBSD-src-3d620f4db959d94aa8ba6c0034aae70404b1a508.tar.gz |
Add `ipv6_ifconfig_IFN_aliasN' directive to allow multiple aliases.
PR: conf/24239
Diffstat (limited to 'etc/rc.d')
-rw-r--r-- | etc/rc.d/network_ipv6 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/rc.d/network_ipv6 b/etc/rc.d/network_ipv6 index 6b4809f..6b47af8 100644 --- a/etc/rc.d/network_ipv6 +++ b/etc/rc.d/network_ipv6 @@ -302,6 +302,15 @@ network6_interface_setup() { rtsol_interface=no ifconfig $i inet6 ${ipv6_ifconfig} alias fi + alias=0 + while : ; do + eval ipv6_ifconfig=\$ipv6_ifconfig_${i}_alias${alias} + if [ -z "${ipv6_ifconfig}" ]; then + break; + fi + ifconfig $i inet6 ${ipv6_ifconfig} alias + alias=$((${alias} + 1)) + done if [ ${rtsol_available} = yes -a ${rtsol_interface} = yes ] then |