|
@@ -34,4 +34,12 @@ define TRIGGERHAPPY_INSTALL_INIT_SYSV
|
|
|
$(TARGET_DIR)/etc/init.d/S10triggerhappy
|
|
|
endef
|
|
|
|
|
|
+define TRIGGERHAPPY_INSTALL_INIT_SYSTEMD
|
|
|
+ $(INSTALL) -D -m 644 package/triggerhappy/triggerhappy.service \
|
|
|
+ $(TARGET_DIR)/usr/lib/systemd/system/triggerhappy.service
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
+ ln -sf ../../../../usr/lib/systemd/system/triggerhappy.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/triggerhappy.service
|
|
|
+endef
|
|
|
+
|
|
|
$(eval $(generic-package))
|