obuspa: 5.0.0.21

This commit is contained in:
vdutta 2022-09-14 12:30:37 +05:30
parent 2cc92999a6
commit 2df2eb0b9e
2 changed files with 7 additions and 7 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=obuspa
PKG_VERSION:=5.0.0.20
PKG_VERSION:=5.0.0.21
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)

View file

@ -5,14 +5,14 @@
fix_stomp_section() {
local encryption
config_get_bool encryption $1 encryption "1"
uci_set obuspa $1 encryption ""
uci_set obuspa $1 EnableEncryption "$encryption"
config_get_bool encryption $1 encryption ""
if [ -n "${encryption}" ]; then
uci_set obuspa $1 encryption ""
uci_set obuspa $1 EnableEncryption "$encryption"
fi
}
# Copy defaults by the factory to the cwmp UCI user section.
# fix the stomp encryption parameter
config_load obuspa
config_foreach fix_stomp_section stomp
uci_commit
# No need for commit here, it is done by uci_apply_defaults().