mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix for packages updates and versions updates
This commit is contained in:
parent
51ad144788
commit
4c781208a1
14 changed files with 145 additions and 116 deletions
|
@ -1,13 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set unbound.@unbound[-1].listen_port=5353
|
||||
set unbound.@unbound[-1].protocol="ip4_only"
|
||||
set unbound.@unbound[-1].enabled=1
|
||||
commit unbound
|
||||
add_list dhcp.@dnsmasq[-1].server="127.0.0.1#5353"
|
||||
commit dhcp
|
||||
EOF
|
||||
if [ "$(uci -q get unbound.@unbound[0].listen_port | grep 5353)" = "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set unbound.@unbound[-1].listen_port=5353
|
||||
set unbound.@unbound[-1].protocol="ip4_only"
|
||||
set unbound.@unbound[-1].enabled=1
|
||||
commit unbound
|
||||
EOF
|
||||
fi
|
||||
if [ "$(uci -q show dhcp | grep 127.0.0.1#5353)" = "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
add_list dhcp.@dnsmasq[-1].server="127.0.0.1#5353"
|
||||
commit dhcp
|
||||
EOF
|
||||
fi
|
||||
rm -f /tmp/luci-indexcache
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue