zapret/init.d/openwrt/firewall.zapret

12 lines
236 B
Plaintext
Raw Normal View History

2024-10-28 09:32:24 +03:00
SCRIPT=$(readlink /etc/init.d/zapret)
if [ -n "$SCRIPT" ]; then
EXEDIR=$(dirname "$SCRIPT")
ZAPRET_BASE=$(readlink -f "$EXEDIR/../..")
else
ZAPRET_BASE=/opt/zapret
fi
. "$ZAPRET_BASE/init.d/openwrt/functions"
zapret_apply_firewall