Hi!
I’m trying to add new functionality to the page add openvpn client. At the moment I want to add the ability to change the type of device (tun/tap).
I added the necessary objects in the source code “templates/vpnconfig”.
cut
if (""!="") {
X.Dev.value="TUN";
} else {
X.Dev.value="TAP";
}
cut
And
cut
Dev
cut

But the script “templates/vpnconfig” do not transfer new parameters was script “script/createvpn”
I created a test script “script/createvpn” with the contents:
#!/bin/sh
for i in "${@}"; do echo "$i"; done > /root/test.txt
And on the way out, I get the following:
root@zeroshell scripts> cat /root/test.txt
VPN02
Virtual Private Network
test
1197
UDP
Server
yes
X509
Auto
But why, among the variables is missing the TUN or TAP?
Help please!