luci: fix dnsmasq restart order (#2153)

This commit is contained in:
sjtuross 2022-10-20 17:02:10 +08:00 committed by sbwml
parent 8f3458537c
commit 32d646958c

View File

@ -45,8 +45,8 @@ logic_restart() {
for server in $(uci -q get dhcp.@dnsmasq[0].server); do
[ -n "$(echo $server | grep '\/')" ] || uci -q del_list dhcp.@dnsmasq[0].server="$server"
done
/etc/init.d/dnsmasq restart >/dev/null 2>&1
restore_servers
/etc/init.d/dnsmasq restart >/dev/null 2>&1
else
/etc/init.d/dnsmasq restart >/dev/null 2>&1
fi