package/iito: relocate Finit conf and add tmpfiles.d for /run/led

Relocate Finit conf to package, like klish and confd.  Add condition to
ensure it is not started before mdev/udevd are up and kernel LED modules
have been loaded properly.

Also, add tmpfiles.conf to ensure /run/led is recreated at every boot.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-11-18 14:49:56 +01:00
parent 2caf729ee8
commit cc6232bf38
4 changed files with 12 additions and 1 deletions
@@ -1 +0,0 @@
service [S0123456789] iitod -- LED daemon
+10
View File
@@ -10,4 +10,14 @@ IITO_LICENSE = GPL-2.0
IITO_LICENSE_FILES = COPYING
IITO_DEPENDENCIES = jansson libev udev
define IITO_INSTALL_HOOK
$(INSTALL) -D -m 0644 $(BR2_EXTERNAL_INFIX_PATH)/package/iito/iitod.svc \
$(FINIT_D)/available/iitod.conf
$(INSTALL) -d -m 0755 $(FINIT_D)/enabled
ln -sf ../available/iitod.conf $(FINIT_D)/enabled/iitod.conf
cp $(CONFD_PKGDIR)/tmpfiles.conf $(TARGET_DIR)/etc/tmpfiles.d/iitod.conf
endef
IITO_POST_INSTALL_TARGET_HOOKS += IITO_INSTALL_HOOK
$(eval $(autotools-package))
+1
View File
@@ -0,0 +1 @@
service [S0123456789] <!pid/syslogd> iitod -- LED daemon
+1
View File
@@ -0,0 +1 @@
d /run/led - - -