openwrt init: default OPENWRT_LAN=lan

This commit is contained in:
bol-van 2021-09-29 14:18:36 +03:00
parent 0a1c81b94d
commit 0c2295ee77

View File

@ -5,6 +5,7 @@ ZAPRET=/etc/init.d/zapret
[ "$ACTION" = "ifup" ] && [ -x "$ZAPRET" ] && "$ZAPRET" enabled && { [ "$ACTION" = "ifup" ] && [ -x "$ZAPRET" ] && "$ZAPRET" enabled && {
[ -n "$ZAPRET_BASE" ] || ZAPRET_BASE=/opt/zapret [ -n "$ZAPRET_BASE" ] || ZAPRET_BASE=/opt/zapret
. "$ZAPRET_BASE/config" . "$ZAPRET_BASE/config"
[ -n "$OPENWRT_LAN" ] || OPENWRT_LAN=lan
for lan in $OPENWRT_LAN; do for lan in $OPENWRT_LAN; do
[ "$INTERFACE" = "$lan" ] && { [ "$INTERFACE" = "$lan" ] && {
"$ZAPRET" restart "$ZAPRET" restart