convert luci.fs users to nixio.fs api
[project/luci.git] / applications / luci-openvpn / luasrc / model / cbi / openvpn-basic.lua
index cadf558..b3e22d4 100644 (file)
@@ -12,7 +12,6 @@ You may obtain a copy of the License at
 $Id$
 ]]--
 
-require("luci.fs")
 require("luci.ip")
 require("luci.model.uci")
 
@@ -42,11 +41,12 @@ local basicParams = {
        { Flag,                 "client_to_client",             0 },
        { DynamicList,  "remote",                               "vpnserver.example.org" },
 
-       { Value,                "secret",                               "/etc/openvpn/secret.key 1" },
-       { Value,                "ca",                                   "/etc/easy-rsa/keys/ca.crt" },
-       { Value,                "dh",                                   "/etc/easy-rsa/keys/dh1024.pem" },
-       { Value,                "cert",                                 "/etc/easy-rsa/keys/some-client.crt" },
-       { Value,                "key",                                  "/etc/easy-rsa/keys/some-client.key" },
+       { FileUpload,   "secret",                               "/etc/openvpn/secret.key 1" },
+       { FileUpload,   "pkcs12",                               "/etc/easy-rsa/keys/some-client.pk12" },
+       { FileUpload,   "ca",                                   "/etc/easy-rsa/keys/ca.crt" },
+       { FileUpload,   "dh",                                   "/etc/easy-rsa/keys/dh1024.pem" },
+       { FileUpload,   "cert",                                 "/etc/easy-rsa/keys/some-client.crt" },
+       { FileUpload,   "key",                                  "/etc/easy-rsa/keys/some-client.key" },
 }