mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-24 23:26:42 +00:00
15 lines
286 B
Bash
15 lines
286 B
Bash
#!/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
|
|
}
|