[package] 6in4: fix logic fail in previous commit
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 4 Sep 2010 16:12:40 +0000 (16:12 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 4 Sep 2010 16:12:40 +0000 (16:12 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22897 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/6in4/files/6in4.hotplug

index 790edc0..534682e 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"
This page took 0.022662 seconds and 4 git commands to generate.