mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
icwmp: do not use local out of function
This commit is contained in:
parent
cf5327b44c
commit
019d6c3a00
1 changed files with 33 additions and 27 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue