aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2020-02-05 09:20:39 +0100
committerPaul Spooren <mail@aparcar.org>2021-03-05 00:10:06 -1000
commitc24c23e1851ff6c51649d094ae34ff3ba49f64e0 (patch)
tree4211352aa846cde722548f6713d1959f996502d5
parentdec14ac436325abddd0ded06f34e95425fc9a75e (diff)
downloadupstream-c24c23e1851ff6c51649d094ae34ff3ba49f64e0.tar.gz
upstream-c24c23e1851ff6c51649d094ae34ff3ba49f64e0.tar.bz2
upstream-c24c23e1851ff6c51649d094ae34ff3ba49f64e0.zip
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@dev.tdt.de>
-rw-r--r--package/network/utils/rssileds/Makefile2
-rw-r--r--package/network/utils/rssileds/files/rssi3
2 files changed, 5 insertions, 0 deletions
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"