mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-08-08 20:03:41 +08:00
Revert "luci-app-ssr-plus:ssr-ad separate control use (#3592)"
This reverts commit 84bf3aadcd77ce722a28aca49fb8c59661f69561.
This commit is contained in:
parent
2fa78823c4
commit
860a5d1e6a
@ -524,9 +524,6 @@ start() {
|
|||||||
conf-dir=/tmp/dnsmasq.oversea
|
conf-dir=/tmp/dnsmasq.oversea
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
if [ -e "/tmp/dnsmasq.d/ad.conf" ]; then
|
|
||||||
rm -f /tmp/dnsmasq.d/ad.conf
|
|
||||||
fi
|
|
||||||
if [ $(uci_get_by_type global adblock 0) == "0" ]; then
|
if [ $(uci_get_by_type global adblock 0) == "0" ]; then
|
||||||
rm -f /tmp/dnsmasq.ssr/ad.conf
|
rm -f /tmp/dnsmasq.ssr/ad.conf
|
||||||
fi
|
fi
|
||||||
@ -582,14 +579,9 @@ stop() {
|
|||||||
else
|
else
|
||||||
kill -9 $(busybox ps -w | grep pdnsd | grep -v grep | awk '{print $1}') >/dev/null 2>&1
|
kill -9 $(busybox ps -w | grep pdnsd | grep -v grep | awk '{print $1}') >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
if [ $(uci_get_by_type global adblock 0) == "0" ]; then
|
|
||||||
rm -f /tmp/dnsmasq.d/ad.conf
|
|
||||||
else
|
|
||||||
cp -f /etc/dnsmasq.ssr/ad.conf /tmp/dnsmasq.d/ad.conf
|
|
||||||
fi
|
|
||||||
if [ -f "/tmp/dnsmasq.d/dnsmasq-ssr.conf" ]; then
|
if [ -f "/tmp/dnsmasq.d/dnsmasq-ssr.conf" ]; then
|
||||||
rm -f /tmp/dnsmasq.d/dnsmasq-ssr.conf
|
rm -f /tmp/dnsmasq.d/dnsmasq-ssr.conf
|
||||||
|
/etc/init.d/dnsmasq restart >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
/etc/init.d/dnsmasq restart >/dev/null 2>&1
|
|
||||||
del_cron
|
del_cron
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user