summaryrefslogtreecommitdiff
path: root/package/6in4
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-09-04 16:12:40 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-09-04 16:12:40 +0000
commitf1303bd07435374a025821098b3d5587e1cd9c2c (patch)
treef208f7896eb97ad3070aa8c715d33c58db9cfb37 /package/6in4
parent52dcaeb65d0959543104fd470e167f18a8a97fc9 (diff)
downloadmtk-20170518-f1303bd07435374a025821098b3d5587e1cd9c2c.zip
mtk-20170518-f1303bd07435374a025821098b3d5587e1cd9c2c.tar.gz
mtk-20170518-f1303bd07435374a025821098b3d5587e1cd9c2c.tar.bz2
6in4: fix logic fail in previous commit
SVN-Revision: 22897
Diffstat (limited to 'package/6in4')
-rw-r--r--package/6in4/files/6in4.hotplug2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/6in4/files/6in4.hotplug b/package/6in4/files/6in4.hotplug
index 790edc0..534682e 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"