3 uci -q batch <<-EOF >/dev/null
4 delete ucitrack.@unbound[-1]
6 set ucitrack.@unbound[-1].init=unbound
10 rm -f /tmp/luci-indexcache
11 [ ! -x /usr/sbin/unbound-control ] && exit 0
13 uci -q batch <<-EOF >/dev/null
14 set luci.unboundhosts=command
15 set luci.unboundhosts.name='Unbound Local Hosts'
16 set luci.unboundhosts.command='unbound-control -c /var/lib/unbound/unbound.conf list_local_data'
17 set luci.unboundzones=command
18 set luci.unboundzones.name='Unbound Local Zones'
19 set luci.unboundzones.command='unbound-control -c /var/lib/unbound/unbound.conf list_local_zones'
23 rm -f /tmp/luci-indexcache