icwmp: 8.2.12-2021-11-29

This commit is contained in:
vdutta 2021-11-29 11:14:46 +05:30
parent 2e3013dc56
commit c5654ad9ab
2 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=icwmp
PKG_VERSION:=8.2.12-2021-11-26
PKG_VERSION:=8.2.12-2021-11-29
PKG_FIXUP:=autoreconf
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/icwmp.git
PKG_SOURCE_PROTO:=git

View file

@ -74,10 +74,10 @@ set_wan_interface() {
return 0;
fi
json_load "$(ifstatus $default_wan_interface)"
json_load "$(ifstatus ${wan_interface})"
json_get_var l3_device l3_device
if [ "$l3_device" != "" ];then
uci -q set cwmp.cpe.interface="$l3_device"
if [ -n "$l3_device" ]; then
uci -q set cwmp.cpe.interface="${l3_device}"
uci -q commit cwmp
fi
}