mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Set OpenVPN as default VPN
This commit is contained in:
parent
0df8928298
commit
cc789dbafc
1 changed files with 2 additions and 1 deletions
|
@ -154,9 +154,10 @@ if [ "$(uci -q get network.tun0.mtu)" = "1200" ] || [ -z "$(uci -q get network.t
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set the default VPN
|
||||||
if [ "$(uci -q get openmptcprouter.settings.vpn)" = "" ]; then
|
if [ "$(uci -q get openmptcprouter.settings.vpn)" = "" ]; then
|
||||||
uci -q batch <<-EOF >/dev/null
|
uci -q batch <<-EOF >/dev/null
|
||||||
set openmptcprouter.settings.vpn='glorytun_tcp'
|
set openmptcprouter.settings.vpn='openvpn'
|
||||||
set glorytun.vpn.enable='1'
|
set glorytun.vpn.enable='1'
|
||||||
commit glorytun
|
commit glorytun
|
||||||
commit openmptcprouter
|
commit openmptcprouter
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue