|
@@ -22,4 +22,12 @@ define PTPD_INSTALL_INIT_SYSV
|
|
|
$(TARGET_DIR)/etc/init.d/S65ptpd
|
|
|
endef
|
|
|
|
|
|
+define PTPD_INSTALL_INIT_SYSTEMD
|
|
|
+ $(INSTALL) -D -m 644 package/ptpd/ptpd.service \
|
|
|
+ $(TARGET_DIR)/usr/lib/systemd/system/ptpd.service
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
+ ln -sf ../../../../usr/lib/systemd/system/ptpd.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/ptpd.service
|
|
|
+endef
|
|
|
+
|
|
|
$(eval $(generic-package))
|