diff options
author | Roy Marples <roy@marples.name> | 2007-10-30 11:38:23 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-30 11:38:23 +0000 |
commit | 05f119a78eb803937413cd84f8ec1deb93355586 (patch) | |
tree | 885547b9bfbef8231f4dd8b8217134b1e5fa6ad4 /net.Linux/ip6to4.sh | |
parent | 7d2c240c2584c4cefaebcff86441d31b927293ed (diff) |
Embed newlines in __IFS to save our identing
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}" |