aboutsummaryrefslogtreecommitdiff
path: root/net.Linux/ip6to4.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-30 11:38:23 +0000
committerRoy Marples <roy@marples.name>2007-10-30 11:38:23 +0000
commit05f119a78eb803937413cd84f8ec1deb93355586 (patch)
tree885547b9bfbef8231f4dd8b8217134b1e5fa6ad4 /net.Linux/ip6to4.sh
parent7d2c240c2584c4cefaebcff86441d31b927293ed (diff)
Embed newlines in __IFS to save our identing
Diffstat (limited to 'net.Linux/ip6to4.sh')
-rw-r--r--net.Linux/ip6to4.sh11
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}"