1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add MLVPN interface

This commit is contained in:
Ycarus 2018-06-07 16:52:27 +02:00
parent 8d5452c810
commit c9a0334afe
7 changed files with 121 additions and 12 deletions

View file

@ -21,9 +21,9 @@ if [ "$(uci -q get network.omrvpn)" = "" ] && [ "$(uci -q get network.mlvpn)" =
EOF
fi
if [ "$(uci get firewall.@zone[2].network | grep omrvpn)" = "" ] && [ "$(uci get firewall.@zone[2].network | grep mlvpn)" = "" ]; then
if [ "$(uci get firewall.zone_vpn.network | grep omrvpn)" = "" ] && [ "$(uci get firewall.zone_vpn.network | grep mlvpn)" = "" ]; then
uci -q batch <<-EOF >/dev/null
add_list firewall.@zone[2].network='mlvpn'
add_list firewall.zone_vpn.network='mlvpn'
EOF
fi
rm -f /tmp/luci-indexcache