blob: 8a2b47e521432a1b6b6d6d1259acebf6d8fdd15b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
pubs=($pubs)
hosts=($hosts)
lines="''\n"
for ((i = 0; i < ${#pubs[*]}; i++)); do
addr=$($cjdns/bin/publictoip6 ${pubs[i]})
lines="${lines}$addr ${hosts[i]}\n"
done
lines="${lines}''"
echo -ne $lines > $out
|