From: Florian Eckert Date: Wed, 5 Feb 2020 08:20:39 +0000 (+0100) Subject: rssileds: use new application led trigger backend X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c24c23e1851ff6c51649d094ae34ff3ba49f64e0;p=openwrt%2Fstaging%2Fnbd.git 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 '' due to missing kernel module I think this callback should be changed in the future to restart the service. Signed-off-by: Florian Eckert --- 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"