Browse Source

openwrt hotplug : start zapret on lan ifup only if zapret is enabled

pull/33/head
bolvan 6 years ago
parent
commit
3b61dbc20f
  1. 4
      init.d/openwrt/90-zapret

4
init.d/openwrt/90-zapret

@ -2,5 +2,7 @@
ZAPRET=/etc/init.d/zapret
[ -x "$ZAPRET" ] && [ "$INTERFACE" = "lan" ] && {
[ "$ACTION" = "ifup" ] && $ZAPRET start
[ "$ACTION" = "ifup" ] && {
$ZAPRET enabled && $ZAPRET start
}
}

Loading…
Cancel
Save