diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2016-10-30 10:10:46 +0200 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2016-10-30 10:10:46 +0200 |
commit | 3c23cc64703e246f2ad57070adbdc86fd575907c (patch) | |
tree | 078ff3b4e29a8ddc0213a2198024c64fb9e5c846 /applications/luci-app-travelmate/luasrc/controller/travelmate.lua | |
parent | 98e12fcebba7cf0a962f316e572077cacfac43d3 (diff) |
luci-app-travelmate: user interface for Travelmate package
Create user interface for Travelmate, a new package that
helps in creating travel router functionality.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'applications/luci-app-travelmate/luasrc/controller/travelmate.lua')
-rw-r--r-- | applications/luci-app-travelmate/luasrc/controller/travelmate.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-travelmate/luasrc/controller/travelmate.lua b/applications/luci-app-travelmate/luasrc/controller/travelmate.lua new file mode 100644 index 000000000..27c19c4e5 --- /dev/null +++ b/applications/luci-app-travelmate/luasrc/controller/travelmate.lua @@ -0,0 +1,11 @@ +-- Licensed to the public under the Apache License 2.0. + +module("luci.controller.travelmate", package.seeall) + +function index() + if not nixio.fs.access("/etc/config/travelmate") then + return + end + + entry({"admin", "services", "travelmate"}, cbi("travelmate"), _("Travelmate"), 60) +end |