09e764659e71025aa9f416e3f415872715683195
[project/luci.git] / applications / luci-radvd / luasrc / controller / radvd.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13 ]]--
14
15 module("luci.controller.radvd", package.seeall)
16
17 function index()
18         if not nixio.fs.access("/etc/config/radvd") then
19                 return
20         end
21
22         entry({"admin", "network", "radvd"}, cbi("radvd"), _("Radvd"), 61).i18n = "radvd"
23         entry({"admin", "network", "radvd", "interface"}, cbi("radvd/interface"), nil).leaf = true
24         entry({"admin", "network", "radvd", "prefix"}, cbi("radvd/prefix"), nil).leaf = true
25         entry({"admin", "network", "radvd", "route"}, cbi("radvd/route"), nil).leaf = true
26         entry({"admin", "network", "radvd", "rdnss"}, cbi("radvd/rdnss"), nil).leaf = true
27         entry({"admin", "network", "radvd", "dnssl"}, cbi("radvd/dnssl"), nil).leaf = true
28 end