summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr/luasrc/controller/olsr.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-08 08:14:31 +0000
committerSteven Barth <steven@midlink.org>2008-06-08 08:14:31 +0000
commit7d03f8ea8a5edf72b708a8a4f45346048274fae6 (patch)
tree5e043f366b4db2b02d3389b09e5699c485c57bc8 /applications/luci-olsr/luasrc/controller/olsr.lua
parent09ecbe73ed51cdbbb204f323ad9207505680cd94 (diff)
* Core translation
* Added license headers * Splitted qos into separate application package
Diffstat (limited to 'applications/luci-olsr/luasrc/controller/olsr.lua')
-rw-r--r--applications/luci-olsr/luasrc/controller/olsr.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/applications/luci-olsr/luasrc/controller/olsr.lua b/applications/luci-olsr/luasrc/controller/olsr.lua
index 24159b7cc..d795dc4ed 100644
--- a/applications/luci-olsr/luasrc/controller/olsr.lua
+++ b/applications/luci-olsr/luasrc/controller/olsr.lua
@@ -1,6 +1,10 @@
module("luci.controller.olsr", package.seeall)
function index()
+ if not luci.fs.isfile("/etc/config/olsr") then
+ return
+ end
+
local page = node("admin", "status", "olsr")
page.target = call("action_index")
page.title = "OLSR"