From 05f119a78eb803937413cd84f8ec1deb93355586 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 30 Oct 2007 11:38:23 +0000 Subject: Embed newlines in __IFS to save our identing --- net.Linux/ip6to4.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'net.Linux/ip6to4.sh') 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}" -- cgit v1.2.3