mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-03 21:24:06 +02:00
[backfire] merge r22889, r22893 and r22897
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22940 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b8178fe409
commit
55085d799f
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=6in4
|
||||
PKG_VERSION:=5
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
@ -32,7 +32,9 @@ if [ "$ACTION" = ifup ]; then
|
||||
config_get password "$cfg" password
|
||||
|
||||
[ -n "$tunnelid" ] && [ -n "$username" ] && [ -n "$password" ] && {
|
||||
password="$(echo -n "$password" | md5sum)"; password="${password%% *}"
|
||||
[ "${#password}" == 32 -a -z "${password//[a-f0-9]/}" ] || {
|
||||
password="$(echo -n "$password" | md5sum)"; password="${password%% *}"
|
||||
}
|
||||
uci_set_state network "$cfg" ipaddr "$wanip"
|
||||
|
||||
( wget -qO/dev/null "http://ipv4.tunnelbroker.net/ipv4_end.php?ipv4b=AUTO&user_id=$username&pass=$password&tunnel_id=$tunnelid" && ifup "$cfg" )&
|
||||
|
Loading…
Reference in New Issue
Block a user