summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-mmc_over_gpio/luasrc/controller
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-10-27 23:07:46 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-10-27 23:07:46 +0000
commit0942fcc70be2ffa28158d64aa6dfacd68b747067 (patch)
tree53f4ee9c10974a16e1b577cb8bf2de6152bf03ac /applications/luci-mmc_over_gpio/luasrc/controller
parentdc00b42e6da0765e6fd213e50230d4765569f9ac (diff)
* luci/applications: add new mmc_over_gpio configuration, thanks Yanira!
Diffstat (limited to 'applications/luci-mmc_over_gpio/luasrc/controller')
-rw-r--r--applications/luci-mmc_over_gpio/luasrc/controller/mmc_over_gpio.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/applications/luci-mmc_over_gpio/luasrc/controller/mmc_over_gpio.lua b/applications/luci-mmc_over_gpio/luasrc/controller/mmc_over_gpio.lua
new file mode 100644
index 000000000..ce244cb50
--- /dev/null
+++ b/applications/luci-mmc_over_gpio/luasrc/controller/mmc_over_gpio.lua
@@ -0,0 +1,28 @@
+--[[
+
+LuCI mmc_over_gpio
+(c) 2008 Yanira <forum-2008@email.de>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+$Id$
+
+]]--
+
+module("luci.controller.mmc_over_gpio", package.seeall)
+
+function index()
+ require("luci.i18n")
+ luci.i18n.loadc("mmc_over_gpio")
+ if not luci.fs.isfile("/etc/config/mmc_over_gpio") then
+ return
+ end
+
+ local page = entry({"admin", "system", "mmc_over_gpio"}, cbi("mmc_over_gpio"), luci.i18n.translate("mmc_over_gpio", "mmc_over_gpio"), 60)
+ page.i18n = "mmc_over_gpio"
+ page.dependent = true
+end