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>
This commit is contained in:
Florian Eckert 2020-02-05 09:20:39 +01:00 committed by Paul Spooren
parent dec14ac436
commit c24c23e185
2 changed files with 5 additions and 0 deletions

View File

@ -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))

View File

@ -0,0 +1,3 @@
#!/bin/sh
logger -t led-trigger "LED trigger rssi is handled by /etc/init.d/rssileds"