diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2016-10-14 13:15:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-14 13:15:35 +0300 |
commit | 1e1a706db5040d94ec5fd98a1fbf3563637b6c67 (patch) | |
tree | ed0dd3c7485784dd4f244e38be2cb395e16d72ac /applications/luci-app-rp-pppoe-server/luasrc/controller/rp-pppoe-server.lua | |
parent | 3af8b3c5b6ccf0c87c0188772d8e1be8870fc214 (diff) | |
parent | 1f4bda95fffd0a9bf7538ec338d4deea36214392 (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.lua | 13 |
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 + |