mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-02-04 22:40:25 +01:00
do not reload network if reqopts are not changed
This commit is contained in:
parent
370c6f3492
commit
a1d2dc97b0
1 changed files with 2 additions and 0 deletions
|
|
@ -87,6 +87,8 @@ enable_dhcp_option43() {
|
|||
done
|
||||
if [ $proto == "dhcp" ]; then
|
||||
newreqopts="$(echo $newreqopts | tr ' ' '\n' | sort -n | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//')"
|
||||
reqopts="$(echo $reqopts | tr ' ' '\n' | sort -n | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//')"
|
||||
[ "$newreqopts" == "$reqopts" ] && return
|
||||
uci -q set network.$wan.reqopts="$newreqopts"
|
||||
uci commit network
|
||||
ubus call network reload
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue