From 3c23cc64703e246f2ad57070adbdc86fd575907c Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Sun, 30 Oct 2016 10:10:46 +0200 Subject: 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 --- .../luci-app-travelmate/luasrc/controller/travelmate.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 applications/luci-app-travelmate/luasrc/controller/travelmate.lua (limited to 'applications/luci-app-travelmate/luasrc/controller') 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 0000000000..27c19c4e52 --- /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 -- cgit v1.2.3