openwrt init : more no running at boot hunting

This commit is contained in:
bolvan
2019-05-14 20:49:33 +03:00
parent f0b4776bf1
commit 7ea288f93a
4 changed files with 32 additions and 6 deletions

7
init.d/openwrt/90-zapret Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
ZAPRET=/etc/init.d/zapret
[ -x "$ZAPRET" ] && [ "$INTERFACE" = "lan" ] && {
[ "$ACTION" = "ifup" ] && $ZAPRET start
[ "$ACTION" = "ifdown" ] && $ZAPRET stop
}