From 0c2295ee775cb6f600413f2ac33b32cdfca7bffa Mon Sep 17 00:00:00 2001 From: bol-van Date: Wed, 29 Sep 2021 14:18:36 +0300 Subject: [PATCH] openwrt init: default OPENWRT_LAN=lan --- init.d/openwrt/90-zapret | 1 + 1 file changed, 1 insertion(+) diff --git a/init.d/openwrt/90-zapret b/init.d/openwrt/90-zapret index 94a7568..10554fb 100644 --- a/init.d/openwrt/90-zapret +++ b/init.d/openwrt/90-zapret @@ -5,6 +5,7 @@ ZAPRET=/etc/init.d/zapret [ "$ACTION" = "ifup" ] && [ -x "$ZAPRET" ] && "$ZAPRET" enabled && { [ -n "$ZAPRET_BASE" ] || ZAPRET_BASE=/opt/zapret . "$ZAPRET_BASE/config" + [ -n "$OPENWRT_LAN" ] || OPENWRT_LAN=lan for lan in $OPENWRT_LAN; do [ "$INTERFACE" = "$lan" ] && { "$ZAPRET" restart