zapret/init.d/openwrt/90-zapret
2021-03-04 14:30:38 +03:00

9 lines
158 B
Bash

#!/bin/sh
ZAPRET=/etc/init.d/zapret
[ -x "$ZAPRET" ] && [ "$INTERFACE" = "lan" ] && {
[ "$ACTION" = "ifup" ] && {
$ZAPRET enabled && $ZAPRET restart
}
}