mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
sync (#542)
This commit is contained in:
commit
4e299894ec
2 changed files with 8 additions and 4 deletions
|
@ -475,13 +475,11 @@ service_triggers() {
|
|||
}
|
||||
|
||||
reload_service() {
|
||||
stop
|
||||
sleep 5
|
||||
start
|
||||
restart "$@"
|
||||
}
|
||||
|
||||
restart_service() {
|
||||
stop
|
||||
sleep 5
|
||||
start
|
||||
start "$@"
|
||||
}
|
||||
|
|
|
@ -65,6 +65,12 @@ if [ "$(uci -q get dhcp.@dnsmasq[0].rebind_domain)" = "" ]; then
|
|||
commit dhcp
|
||||
EOF
|
||||
fi
|
||||
if [ "$(uci -q get dhcp.@dnsmasq[0].dnsforwardmax)" = "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set dhcp.@dnsmasq[-1].dnsforwardmax='1500'
|
||||
commit dhcp
|
||||
EOF
|
||||
fi
|
||||
if [ "$(uci -q get dhcp.lan.dhcp_options)" = "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
uci add_list dhcp.lan.dhcp_option='252,"\n"'
|
||||
|
|
Loading…
Reference in a new issue