projects
/
openwrt
/
staging
/
stintel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52dcaeb
)
6in4: fix logic fail in previous commit
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 4 Sep 2010 16:12:40 +0000
(16:12 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 4 Sep 2010 16:12:40 +0000
(16:12 +0000)
SVN-Revision: 22897
package/6in4/files/6in4.hotplug
patch
|
blob
|
history
diff --git
a/package/6in4/files/6in4.hotplug
b/package/6in4/files/6in4.hotplug
index 790edc0e1545a3b6fc78dfcd108587250a756102..534682e99a152ca600e2d734c1da654d335a4437 100644
(file)
--- 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"