mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-02 14:40:52 +03: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 && {
|
[ "$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
|
||||||
|
Loading…
Reference in New Issue
Block a user