mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
6in4: fix logic fail in previous commit
SVN-Revision: 22897
This commit is contained in:
parent
52dcaeb65d
commit
f1303bd074
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user