mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
12 lines
350 B
Bash
Executable File
12 lines
350 B
Bash
Executable File
#!/bin/sh
|
|
PROG_PATH=/usr/share/adbyby
|
|
if [ -z "$(dnsmasq --version | grep no-ipset)" ]; then
|
|
[ $(uci get adbyby.@adbyby[-1].wan_mode) -ne 2 ] && \
|
|
[ $(awk -F= '/^ipset/{print $2}' $PROG_PATH/adhook.ini) -eq 1 ] && \
|
|
{
|
|
sed -i 's/adbyby_list/adbyby_wan/' /tmp/adbyby_host.conf
|
|
ipset -F adbyby_wan 2>/dev/null
|
|
/etc/init.d/dnsmasq restart
|
|
}
|
|
fi
|