diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-04 16:12:40 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-04 16:12:40 +0000 |
commit | b3e16ec2e4c5f16b88518c85dc8194b74c1b3aef (patch) | |
tree | f54cc6fac9ed41eed6b4866484e0f0002de9cc1f | |
parent | c53f7423475b80da5e94d99af8f188e2ccb8caca (diff) | |
download | upstream-b3e16ec2e4c5f16b88518c85dc8194b74c1b3aef.tar.gz upstream-b3e16ec2e4c5f16b88518c85dc8194b74c1b3aef.tar.bz2 upstream-b3e16ec2e4c5f16b88518c85dc8194b74c1b3aef.zip |
[package] 6in4: fix logic fail in previous commit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22897 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/6in4/files/6in4.hotplug | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/6in4/files/6in4.hotplug b/package/6in4/files/6in4.hotplug index 790edc0e15..534682e99a 100644 --- a/package/6in4/files/6in4.hotplug +++ b/package/6in4/files/6in4.hotplug @@ -32,7 +32,7 @@ if [ "$ACTION" = ifup ]; then config_get password "$cfg" password [ -n "$tunnelid" ] && [ -n "$username" ] && [ -n "$password" ] && { - [ "${#password}" == 32 -a -z "${password//[a-f0-9]/}" ] && { + [ "${#password}" == 32 -a -z "${password//[a-f0-9]/}" ] || { password="$(echo -n "$password" | md5sum)"; password="${password%% *}" } uci_set_state network "$cfg" ipaddr "$wanip" |