icwmp: do not use local out of function

This commit is contained in:
Sukru Senli 2018-01-02 16:46:15 +01:00
parent cf5327b44c
commit 019d6c3a00

View file

@ -4,6 +4,9 @@
[ "$ACTION" == "ifup" ] || exit 0
[ -f /etc/config/cwmp ] || exit 0
handle_icwmp_reload() {
local islan="$(uci -q get network.$INTERFACE.is_lan)"
[ "$islan" == "1" ] && exit 0
@ -38,5 +41,8 @@ network_get_subnets cursubnets $INTERFACE
[ "$previpaddr" = "$curipaddr" -a "$prevgateway" = "$curgateway" -a "$prevsubnets" = "$cursubnets" ] && exit 0
[ -f /etc/config/cwmp ] && /etc/init.d/icwmpd reload &
/etc/init.d/icwmpd reload &
}
handle_icwmp_reload