6in4: fix logic fail in previous commit
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 4 Sep 2010 16:12:40 +0000 (16:12 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 4 Sep 2010 16:12:40 +0000 (16:12 +0000)
SVN-Revision: 22897

package/6in4/files/6in4.hotplug

index 790edc0e1545a3b6fc78dfcd108587250a756102..534682e99a152ca600e2d734c1da654d335a4437 100644 (file)
@@ -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"