10 config_get tunnelid "$cfg" tunnelid
11 config_get username "$cfg" username
12 config_get password "$cfg" password
13 config_get tunnel "$cfg" tunnel
15 password=`echo -n $password | md5sum | cut -d ' ' -f 1`
16 wget -q -O /dev/null "http://ipv4.tunnelbroker.net/ipv4_end.php?ipv4b=$ipaddr&pass=$password&user_id=$username&tunnel_id=$tunnelid"
18 uci set "6tunnel.@$tunnel[0].localip4=$ipaddr"
20 /etc/init.d/6tunnel restart
24 config_foreach update_tun