mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
16 lines
249 B
Bash
Executable file
16 lines
249 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -f /tmp/blockip.ipset ];then
|
|
|
|
adbyby_enable=$(uci get adbyby.@adbyby[0].enable)
|
|
|
|
if [ $adbyby_enable -eq 1 ]; then
|
|
if pidof adbyby>/dev/null; then
|
|
/etc/init.d/adbyby reload_rule
|
|
else
|
|
/etc/init.d/adbyby restart
|
|
fi
|
|
fi
|
|
|
|
fi
|
|
|