diff options
Diffstat (limited to 'net.Linux/ip6to4.sh')
-rw-r--r-- | net.Linux/ip6to4.sh | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/net.Linux/ip6to4.sh b/net.Linux/ip6to4.sh index a4a477a3..df5f5ac5 100644 --- a/net.Linux/ip6to4.sh +++ b/net.Linux/ip6to4.sh @@ -56,16 +56,11 @@ ip6to4_start() { esac veinfo "IPv4 address on ${host}: ${ip}/${subnet}" - local OIFS=$IFS SIFS=${IFS-y} ipa= ip6= - IFS="${IFS}." - for i in ${ip} ; do + local ipa= ip6= IFS="${IFS}." + for i in ${ip}; do ipa="${ipa} ${i}" done - if [ "${SIFS}" = "y" ] ; then - IFS=$OIFS - else - unset IFS - fi + unset IFS eval ip6="$(printf "2002:%02x%02x:%02x%02x::%s" ${ipa} ${suffix})" veinfo "Derived IPv6 address: ${ip6}" |