From 9f288af5a826f95de40a702c746c86ffaaa8b8b0 Mon Sep 17 00:00:00 2001 From: yk271 <29210205+yk271@users.noreply.github.com> Date: Mon, 5 Dec 2022 02:30:01 +0800 Subject: [PATCH] luci-app-passwall: Revert "luci: fix dnsmasq restart order (#2153)" (#2220) This reverts commit 8604b94cccd15319e4d2ed92ce02928a61e5513b. --- luci-app-passwall/root/usr/share/passwall/helper_dnsmasq.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luci-app-passwall/root/usr/share/passwall/helper_dnsmasq.sh b/luci-app-passwall/root/usr/share/passwall/helper_dnsmasq.sh index e45ad20d1..50657209d 100755 --- a/luci-app-passwall/root/usr/share/passwall/helper_dnsmasq.sh +++ b/luci-app-passwall/root/usr/share/passwall/helper_dnsmasq.sh @@ -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 - restore_servers /etc/init.d/dnsmasq restart >/dev/null 2>&1 + restore_servers else /etc/init.d/dnsmasq restart >/dev/null 2>&1 fi