mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
iup: prevent network reloading if dhcp options are not changed
This commit is contained in:
parent
9b02ee98d2
commit
3e66393c7b
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ init_iup() {
|
|||
esac
|
||||
done
|
||||
if [ $proto == "dhcp" ]; then
|
||||
newreqopts="$(echo $newreqopts | sed "s/^[ \t]*//")"
|
||||
newreqopts="$(echo $newreqopts | tr ' ' '\n' | sort -n | tr '\n' ' ' | sed 's/^[ \t]*//;s/[ \t]*$//')"
|
||||
uci -q set network.wan.reqopts="$newreqopts"
|
||||
uci commit network
|
||||
ubus call network reload
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue