mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-03 16:04:53 +01:00
Revert "icwmp: reload icwmp if new option 43 is received"
This reverts commit b708797e87.
This commit is contained in:
parent
6ed3ae9458
commit
2cfea5f582
1 changed files with 1 additions and 8 deletions
|
|
@ -18,13 +18,6 @@ handle_icwmp_reload() {
|
|||
|
||||
mkdir -p /tmp/ipv4
|
||||
|
||||
local prevopt43=""
|
||||
local curopt43=""
|
||||
local opt43file=/tmp/ipv4/$INTERFACE-dhcp-option43
|
||||
prevopt43=$(cat $opt43file 2>/dev/null)
|
||||
curopt43="$(uci -P /var/state -q get provisioning.iup.url)"
|
||||
[ -n "$curopt43" ] && echo $curopt43 > $opt43file || rm -f $opt43file
|
||||
|
||||
network_flush_cache
|
||||
|
||||
local previpaddr=""
|
||||
|
|
@ -55,7 +48,7 @@ handle_icwmp_reload() {
|
|||
network_get_dnsserver curdnsservers $INTERFACE
|
||||
[ -n "$curdnsservers" ] && echo $curdnsservers > $dnsserverfile || rm -f $dnsserverfile
|
||||
|
||||
[ "$previpaddr" = "$curipaddr" -a "$prevgateway" = "$curgateway" -a "$prevsubnets" = "$cursubnets" -a "$prevdnsservers" = "$curdnsservers" -a "$prevopt43" = "$curopt43" ] && exit 0
|
||||
[ "$previpaddr" = "$curipaddr" -a "$prevgateway" = "$curgateway" -a "$prevsubnets" = "$cursubnets" -a "$prevdnsservers" = "$curdnsservers" ] && exit 0
|
||||
|
||||
/etc/init.d/icwmpd reload &
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue