ramips: enable LED button for TP-Link EC330-G5u v1
authorMikhail Zhilkin <csharper2005@gmail.com>
Sat, 3 Jun 2023 08:37:54 +0000 (08:37 +0000)
committerChristian Lamparter <chunkeey@gmail.com>
Thu, 8 Jun 2023 15:28:03 +0000 (17:28 +0200)
commit91221d9e741abaad6c1342b24139ae72c24e28f4
tree7aff97a012b96b41ca4b827f4ef23abf052b0739
parenta48d0bdb77eb93f7fba6e055dace125c72755b6a
ramips: enable LED button for TP-Link EC330-G5u v1

The device already has LED push button (KEY_LIGHTS_TOGGLE)
and exported GPIO control "led-light". This commit adds
button handler script for switching on/off all device LEDs.

Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(cherry picked from commit d955b41275eaf93b7600f8eb7d706f40302f26c2)
target/linux/ramips/mt7621/base-files/etc/rc.button/lights_toggle [new file with mode: 0755]