mech: create the /run/clixon directory at boot

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-03-08 18:40:25 +01:00
parent e94b4de865
commit 917633f439
3 changed files with 7 additions and 0 deletions
+5
View File
@@ -64,4 +64,9 @@ endef
CLIXON_POST_INSTALL_TARGET_HOOKS += CLIXON_INSTALL_EXAMPLE
endif
define CLIXON_INSTALL_CLEANUP
rm -f $(TARGET_DIR)/var/clixon
endef
CLIXON_POST_INSTALL_TARGET_HOOKS += CLIXON_INSTALL_CLEANUP
$(eval $(autotools-package))
+1
View File
@@ -13,6 +13,7 @@ MECH_AUTORECONF = YES
define MECH_INSTALL_EXTRA
cp $(MECH_PKGDIR)/clixon.conf $(FINIT_D)/available/
ln -sf ../available/clixon.conf $(FINIT_D)/enabled/clixon.conf
cp $(MECH_PKGDIR)/tmpfiles.conf $(TARGET_DIR)/etc/tmpfiles.d/mech.conf
endef
MECH_TARGET_FINALIZE_HOOKS += MECH_INSTALL_EXTRA
+1
View File
@@ -0,0 +1 @@
d /run/clixon - - -