[openwrt/openwrt] rssileds: use new application led trigger backend

LEDE Commits lede-commits at lists.infradead.org
Fri Mar 5 10:10:20 GMT 2021


aparcar pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/c24c23e1851ff6c51649d094ae34ff3ba49f64e0

commit c24c23e1851ff6c51649d094ae34ff3ba49f64e0
Author: Florian Eckert <fe at dev.tdt.de>
AuthorDate: Wed Feb 5 09:20:39 2020 +0100

    rssileds: use new application led trigger backend
    
    This will use the new application led trigger backend. For now this is
    the only package that uses leds trigger in user space to configure the
    kernel led triggers.
    
    The callback script only emmits a message for now, so that this LED is now
    managed by the rssileds service. Until now a generic warning was emitted that
    this LED trigger is not supported. But that is not true.
    
    -> Skipping trigger 'rssileds' for led '<name>' due to missing kernel module
    
    I think this callback should be changed in the future to restart the
    service.
    
    Signed-off-by: Florian Eckert <fe at dev.tdt.de>
---
 package/network/utils/rssileds/Makefile   | 2 ++
 package/network/utils/rssileds/files/rssi | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/package/network/utils/rssileds/Makefile b/package/network/utils/rssileds/Makefile
index dc2245db02..2282d8c5b1 100644
--- a/package/network/utils/rssileds/Makefile
+++ b/package/network/utils/rssileds/Makefile
@@ -40,6 +40,8 @@ define Package/rssileds/install
 	$(INSTALL_BIN) ./files/rssileds.init $(1)/etc/init.d/rssileds
 	$(INSTALL_DIR) $(1)/usr/sbin
 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/rssileds $(1)/usr/sbin/
+	$(INSTALL_DIR) $(1)/usr/libexec/led-trigger
+	$(INSTALL_BIN) ./files/rssi $(1)/usr/libexec/led-trigger/
 endef
 
 $(eval $(call BuildPackage,rssileds))
diff --git a/package/network/utils/rssileds/files/rssi b/package/network/utils/rssileds/files/rssi
new file mode 100644
index 0000000000..0c067332d5
--- /dev/null
+++ b/package/network/utils/rssileds/files/rssi
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+logger -t led-trigger "LED trigger rssi is handled by /etc/init.d/rssileds"



More information about the lede-commits mailing list