summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-rp-pppoe-server/luasrc/controller/rp-pppoe-server.lua
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2016-10-14 13:15:35 +0300
committerGitHub <noreply@github.com>2016-10-14 13:15:35 +0300
commit1e1a706db5040d94ec5fd98a1fbf3563637b6c67 (patch)
treeed0dd3c7485784dd4f244e38be2cb395e16d72ac /applications/luci-app-rp-pppoe-server/luasrc/controller/rp-pppoe-server.lua
parent3af8b3c5b6ccf0c87c0188772d8e1be8870fc214 (diff)
parent1f4bda95fffd0a9bf7538ec338d4deea36214392 (diff)
Merge pull request #682 from cshore/pull-request-pppoe-server
luci-app-pppoe-server: Add PPPoE server configuration
Diffstat (limited to 'applications/luci-app-rp-pppoe-server/luasrc/controller/rp-pppoe-server.lua')
-rw-r--r--applications/luci-app-rp-pppoe-server/luasrc/controller/rp-pppoe-server.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/applications/luci-app-rp-pppoe-server/luasrc/controller/rp-pppoe-server.lua b/applications/luci-app-rp-pppoe-server/luasrc/controller/rp-pppoe-server.lua
new file mode 100644
index 0000000000..105a80e28d
--- /dev/null
+++ b/applications/luci-app-rp-pppoe-server/luasrc/controller/rp-pppoe-server.lua
@@ -0,0 +1,13 @@
+-- Copyright 2015 Daniel Dickinson <openwrt@daniel.thecshore.com>
+-- Licensed to the public under the Apache License 2.0.
+
+module("luci.controller.rp-pppoe-server", package.seeall)
+
+function index()
+ if not nixio.fs.access("/etc/config/pppoe") then
+ return
+ end
+
+ entry({"admin", "services", "rp-pppoe-server"}, cbi("rp-pppoe-server"), _("RP PPPoE Server"))
+end
+