From 8b07ac6c196aef85607a3de4fd232e83cc3037ac Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 4 Sep 2010 16:12:40 +0000 Subject: [PATCH] [package] 6in4: fix logic fail in previous commit SVN-Revision: 22897 --- package/6in4/files/6in4.hotplug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.30.2