mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 05:22:58 +03:00
openwrt hotplug : start zapret on lan ifup only if zapret is enabled
This commit is contained in:
parent
6da033df2a
commit
3b61dbc20f
@ -2,5 +2,7 @@
|
||||
|
||||
ZAPRET=/etc/init.d/zapret
|
||||
[ -x "$ZAPRET" ] && [ "$INTERFACE" = "lan" ] && {
|
||||
[ "$ACTION" = "ifup" ] && $ZAPRET start
|
||||
[ "$ACTION" = "ifup" ] && {
|
||||
$ZAPRET enabled && $ZAPRET start
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user