summaryrefslogtreecommitdiffstats
path: root/package/tinyhttpd/tinyhttpd.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/tinyhttpd/tinyhttpd.mk')
-rw-r--r--package/tinyhttpd/tinyhttpd.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/tinyhttpd/tinyhttpd.mk b/package/tinyhttpd/tinyhttpd.mk
index 0934b71034..194249bd1f 100644
--- a/package/tinyhttpd/tinyhttpd.mk
+++ b/package/tinyhttpd/tinyhttpd.mk
@@ -24,4 +24,12 @@ define TINYHTTPD_INSTALL_INIT_SYSV
$(TARGET_DIR)/etc/init.d/S85tinyhttpd
endef
+define TINYHTTPD_INSTALL_INIT_SYSTEMD
+ $(INSTALL) -D -m 644 package/tinyhttpd/tinyhttpd.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/tinyhttpd.service
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
+ ln -sf ../../../../usr/lib/systemd/system/tinyhttpd.service \
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/tinyhttpd.service
+endef
+
$(eval $(generic-package))
OpenPOWER on IntegriCloud