luci-mod-system: add led plugin infrastructure 3639/head
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 20 Feb 2020 11:04:12 +0000 (12:04 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 27 Feb 2020 12:28:03 +0000 (13:28 +0100)
commit638f5ce071f229fb0c11456a0b59d425179ab288
tree86b6c26b5eead5a6e7fa207a45a9e1784927410a
parenteffb720741534acc12891c149bafa832f9419a6c
luci-mod-system: add led plugin infrastructure

This commit creates the possibility that not only kernel-led-triggers can
be selected but also application-led-triggers from user space.
This is done via a plugin mechanism. The application-led-triggers are scripts
that set kernel-led-triggers on system events or services. Until now this
has not been possible. The package rssileds is a kind of
application-led-trigger.

The following new packages are added:

* luci-app-ledtrig-rssi (application-led-trigger)
* luci-app-ledtrig-switch (kernel-led-trigger) not needed on every most devices
* luci-app-ledtrig-usport (kernel-led-trigger) optional trigger

Since we have now a plugin mechanism I have added the following triggers
as a dependency. So this triggers are now installed per default on LuCI
installation.

* kmod-ledtrig-default-on
* kmod-ledtrig-heartbeat
* kmod-ledtrig-netdev
* kmod-ledtrig-timer

The kernel trigger kmod-ledtrig-usbdev was removed with the commit
https://github.com/openwrt/openwrt/commit/d0b50c2770a0e2d54b37153f2801e2e7dc865fa6
So I have not ported the relevant code anymore.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
14 files changed:
applications/luci-app-ledtrig-rssi/Makefile [new file with mode: 0644]
applications/luci-app-ledtrig-rssi/htdocs/luci-static/resources/view/system/led-trigger/rssi.js [new file with mode: 0644]
applications/luci-app-ledtrig-switch/Makefile [new file with mode: 0644]
applications/luci-app-ledtrig-switch/htdocs/luci-static/resources/view/system/led-trigger/switch0.js [new file with mode: 0644]
applications/luci-app-ledtrig-switch/htdocs/luci-static/resources/view/system/led-trigger/switch1.js [new file with mode: 0644]
applications/luci-app-ledtrig-usbport/Makefile [new file with mode: 0644]
applications/luci-app-ledtrig-usbport/htdocs/luci-static/resources/view/system/led-trigger/usbport.js [new file with mode: 0644]
modules/luci-mod-system/Makefile
modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/default-on.js [new file with mode: 0644]
modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/heartbeat.js [new file with mode: 0644]
modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/netdev.js [new file with mode: 0644]
modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/none.js [new file with mode: 0644]
modules/luci-mod-system/htdocs/luci-static/resources/view/system/led-trigger/timer.js [new file with mode: 0644]
modules/luci-mod-system/htdocs/luci-static/resources/view/system/leds.js