diff --git a/icwmp/Makefile b/icwmp/Makefile index e722b6b67..d0f720f14 100755 --- a/icwmp/Makefile +++ b/icwmp/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=icwmp -PKG_VERSION:=8.2.4-2021-10-13 +PKG_VERSION:=8.2.4-2021-10-14 PKG_FIXUP:=autoreconf PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/icwmp.git PKG_SOURCE_PROTO:=git diff --git a/icwmp/files/etc/hotplug.d/iface/90-icwmp b/icwmp/files/etc/hotplug.d/iface/90-icwmp index c026bfe23..9c989f27d 100644 --- a/icwmp/files/etc/hotplug.d/iface/90-icwmp +++ b/icwmp/files/etc/hotplug.d/iface/90-icwmp @@ -64,8 +64,7 @@ handle_icwmp_restart() { network_get_device curdev $INTERFACE [ -n "$curdev" ] && echo $curdev > $devfile || rm -f $devfile - local wan_iface=`uci get cwmp.cpe.default_wan_interface` - local vendorspecinf=`ubus call network.interface.wan status | jsonfilter -e "@.data.vendorspecinf"` + local vendorspecinf=`ubus call network.interface.${defwan} status | jsonfilter -e "@.data.vendorspecinf"` [ -n "$vendorspecinf" ] && { local url="" case $vendorspecinf in