|
@@ -44,4 +44,12 @@ define THTTPD_INSTALL_INIT_SYSV
|
|
|
$(SED) 's:/usr/local/sbin:/usr/sbin:g' $(TARGET_DIR)/etc/init.d/S90thttpd
|
|
|
endef
|
|
|
|
|
|
+define THTTPD_INSTALL_INIT_SYSTEMD
|
|
|
+ $(INSTALL) -D -m 0644 package/thttpd/thttpd.service \
|
|
|
+ $(TARGET_DIR)/usr/lib/systemd/system/thttpd.service
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/
|
|
|
+ ln -fs ../../../../usr/lib/systemd/system/thttpd.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/thttpd.service
|
|
|
+endef
|
|
|
+
|
|
|
$(eval $(autotools-package))
|