zapret/init.d/openwrt/90-zapret

15 lines
286 B
Plaintext
Raw Normal View History

2021-03-04 14:30:38 +03:00
#!/bin/sh
ZAPRET=/etc/init.d/zapret
[ "$ACTION" = "ifup" ] && [ -x "$ZAPRET" ] && "$ZAPRET" enabled && {
[ -n "$ZAPRET_BASE" ] || ZAPRET_BASE=/opt/zapret
. "$ZAPRET_BASE/config"
for lan in $OPENWRT_LAN; do
[ "$INTERFACE" = "$lan" ] && {
"$ZAPRET" restart
break
}
done
2021-03-04 14:30:38 +03:00
}