mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-11 17:29:16 +05:00
openwrt init: default OPENWRT_LAN=lan
This commit is contained in:
parent
0a1c81b94d
commit
0c2295ee77
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user