diff --git a/files/www/cgi-bin/vpn b/files/www/cgi-bin/vpn index de0e19f3..3006686e 100755 --- a/files/www/cgi-bin/vpn +++ b/files/www/cgi-bin/vpn @@ -183,6 +183,7 @@ function install_vtun() cursor:add("vtun", "options") cursor:add("vtun", "network") cursor:commit("vtun") + write_all("/etc/config.mesh/vtun", read_all("/etc/config/vtun")) http_header() html.header("TUNNEL INSTALLATION IN PROGRESS", true) diff --git a/files/www/cgi-bin/vpnc b/files/www/cgi-bin/vpnc index e0c0b174..e3b39035 100755 --- a/files/www/cgi-bin/vpnc +++ b/files/www/cgi-bin/vpnc @@ -168,6 +168,7 @@ function install_vtun() cursor:add("vtun", "options") cursor:add("vtun", "network") cursor:commit("vtun") + write_all("/etc/config.mesh/vtun", read_all("/etc/config/vtun")) http_header() html.header("TUNNEL INSTALLATION IN PROGRESS", true)