* luci/applications: add new mmc_over_gpio configuration, thanks Yanira!
This commit is contained in:
parent
dc00b42e6d
commit
0942fcc70b
10 changed files with 121 additions and 0 deletions
2
applications/luci-mmc_over_gpio/Makefile
Normal file
2
applications/luci-mmc_over_gpio/Makefile
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
include ../../build/config.mk
|
||||||
|
include ../../build/module.mk
|
4
applications/luci-mmc_over_gpio/ipkg/postinst
Normal file
4
applications/luci-mmc_over_gpio/ipkg/postinst
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
[ -n "${IPKG_INSTROOT}" ] || {
|
||||||
|
( . /etc/uci-defaults/luci-mmc_over_gpio ) && rm -f /etc/uci-defaults/luci-mmc_over_gpio
|
||||||
|
}
|
|
@ -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
|
|
@ -0,0 +1,3 @@
|
||||||
|
mmc_over_gpio = 'MMC/SD Treiberkonfiguration'
|
||||||
|
mmc_over_gpio_desc = 'Konfiguriert die Einstellungen des MMC/SD Karten Treibers'
|
||||||
|
settings = 'Einstellungen'
|
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<i18n:msgs xmlns:i18n="http://luci.freifunk-halle.net/2008/i18n#" xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
|
<i18n:msg xml:id="mmc_over_gpio">MMC/SD Treiberkonfiguration</i18n:msg>
|
||||||
|
<i18n:msg xml:id="mmc_over_gpio_desc">Konfiguriert die Einstellungen des MMC/SD Karten Treibers</i18n:msg>
|
||||||
|
<i18n:msg xml:id="settings">Einstellungen</i18n:msg>
|
||||||
|
|
||||||
|
</i18n:msgs>
|
|
@ -0,0 +1,3 @@
|
||||||
|
mmc_over_gpio = 'MMC/SD driver configuration'
|
||||||
|
mmc_over_gpio_desc = 'MMC/SD driver configuration'
|
||||||
|
settings = 'Settings'
|
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<i18n:msgs xmlns:i18n="http://luci.freifunk-halle.net/2008/i18n#" xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
|
<i18n:msg xml:id="mmc_over_gpio">MMC/SD driver configuration</i18n:msg>
|
||||||
|
<i18n:msg xml:id="mmc_over_gpio_desc">MMC/SD driver configuration</i18n:msg>
|
||||||
|
<i18n:msg xml:id="settings">Settings</i18n:msg>
|
||||||
|
|
||||||
|
</i18n:msgs>
|
|
@ -0,0 +1,41 @@
|
||||||
|
--[[
|
||||||
|
|
||||||
|
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$
|
||||||
|
|
||||||
|
]]--
|
||||||
|
|
||||||
|
m = Map("mmc_over_gpio", translate("mmc_over_gpio"),
|
||||||
|
translate("mmc_over_gpio_desc"))
|
||||||
|
|
||||||
|
s = m:section(TypedSection, "mmc_over_gpio", translate("settings"))
|
||||||
|
s.addremove = true
|
||||||
|
s.anonymous = true
|
||||||
|
|
||||||
|
s:option(Flag, "enabled", translate("enabled", "Enable"))
|
||||||
|
|
||||||
|
s:option(Value, "name", translate("name"))
|
||||||
|
|
||||||
|
pin = s:option(Value, "DI_pin", translate("DI_pin"))
|
||||||
|
for i = 0,7 do pin:value(i) end
|
||||||
|
|
||||||
|
pin = s:option(Value, "DO_pin", translate("DO_pin"))
|
||||||
|
for i = 0,7 do pin:value(i) end
|
||||||
|
|
||||||
|
pin = s:option(Value, "CLK_pin", translate("CLK_pin"))
|
||||||
|
for i = 0,7 do pin:value(i) end
|
||||||
|
|
||||||
|
pin = s:option(Value, "CS_pin", translate("CS_pin"))
|
||||||
|
for i = 0,7 do pin:value(i) end
|
||||||
|
|
||||||
|
s:option(Value, "mode", translate("mode"))
|
||||||
|
|
||||||
|
return m
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
uci batch <<-EOF
|
||||||
|
add ucitrack mmc_over_gpio
|
||||||
|
set ucitrack.@mmc_over_gpio[-1].init=mmc_over_gpio
|
||||||
|
commit ucitrack
|
||||||
|
EOF
|
|
@ -463,6 +463,17 @@ define Package/luci-app-uvc_streamer/install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
define Package/luci-app-mmc_over_gpio
|
||||||
|
$(call Package/luci/webtemplate)
|
||||||
|
DEPENDS+=+luci-admin-full +kmod-mmc-over-gpio
|
||||||
|
TITLE:=mmc_over_gpio
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/luci-app-mmc_over_gpio/install
|
||||||
|
$(call Package/luci/install/template,$(1),applications/luci-mmc_over_gpio)
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
define Package/luci-app-p910nd
|
define Package/luci-app-p910nd
|
||||||
$(call Package/luci/webtemplate)
|
$(call Package/luci/webtemplate)
|
||||||
DEPENDS+=+luci-admin-full +p910nd
|
DEPENDS+=+luci-admin-full +p910nd
|
||||||
|
@ -768,6 +779,9 @@ endif
|
||||||
ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),)
|
ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),)
|
||||||
PKG_SELECTED_MODULES+=applications/luci-uvc_streamer
|
PKG_SELECTED_MODULES+=applications/luci-uvc_streamer
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(CONFIG_PACKAGE_luci-app-mmc_over_gpio),)
|
||||||
|
PKG_SELECTED_MODULES+=applications/luci-mmc_over_gpio
|
||||||
|
endif
|
||||||
ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
|
ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
|
||||||
PKG_SELECTED_MODULES+=applications/luci-p910nd
|
PKG_SELECTED_MODULES+=applications/luci-p910nd
|
||||||
endif
|
endif
|
||||||
|
@ -878,6 +892,7 @@ $(eval $(call BuildPackage,luci-app-ntpc))
|
||||||
$(eval $(call BuildPackage,luci-app-ddns))
|
$(eval $(call BuildPackage,luci-app-ddns))
|
||||||
$(eval $(call BuildPackage,luci-app-samba))
|
$(eval $(call BuildPackage,luci-app-samba))
|
||||||
$(eval $(call BuildPackage,luci-app-uvc_streamer))
|
$(eval $(call BuildPackage,luci-app-uvc_streamer))
|
||||||
|
$(eval $(call BuildPackage,luci-app-mmc_over_gpio))
|
||||||
$(eval $(call BuildPackage,luci-app-p910nd))
|
$(eval $(call BuildPackage,luci-app-p910nd))
|
||||||
$(eval $(call BuildPackage,luci-app-ushare))
|
$(eval $(call BuildPackage,luci-app-ushare))
|
||||||
$(eval $(call BuildPackage,luci-app-hd_idle))
|
$(eval $(call BuildPackage,luci-app-hd_idle))
|
||||||
|
|
Loading…
Reference in a new issue