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 | f1303bd07435374a025821098b3d5587e1cd9c2c (patch) | |
tree | f208f7896eb97ad3070aa8c715d33c58db9cfb37 /package/6in4 | |
parent | 52dcaeb65d0959543104fd470e167f18a8a97fc9 (diff) | |
download | mtk-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.hotplug | 2 |
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" |