summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-openvpn/luasrc/controller/openvpn.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-openvpn/luasrc/controller/openvpn.lua')
-rw-r--r--applications/luci-openvpn/luasrc/controller/openvpn.lua12
1 files changed, 4 insertions, 8 deletions
diff --git a/applications/luci-openvpn/luasrc/controller/openvpn.lua b/applications/luci-openvpn/luasrc/controller/openvpn.lua
index 2b18c73c8e..e86d9a6dd1 100644
--- a/applications/luci-openvpn/luasrc/controller/openvpn.lua
+++ b/applications/luci-openvpn/luasrc/controller/openvpn.lua
@@ -10,7 +10,7 @@ You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
-$Id: init.lua 3516 2008-10-04 18:42:06Z jow $
+$Id$
]]--
module("luci.controller.openvpn", package.seeall)
@@ -18,11 +18,7 @@ function index()
require("luci.i18n")
luci.i18n.loadc("openvpn")
- local p = entry(
- {"admin", "services", "openvpn"}, cbi("openvpn"),
- luci.i18n.translate("openvpn", "OpenVPN")
- )
-
- p.i18n = "openvpn"
- p.leaf = true
+ entry( {"admin", "services", "openvpn"}, cbi("openvpn"), luci.i18n.translate("openvpn", "OpenVPN") ).i18n = "openvpn"
+ entry( {"admin", "services", "openvpn", "basic"}, cbi("openvpn-basic"), nil ).leaf = true
+ entry( {"admin", "services", "openvpn", "advanced"}, cbi("openvpn-advanced"), nil ).leaf = true
end