+++ /dev/null
-[Unit]
-Description=Precision Time Protocol system clock synchronization
-After=linuxptp.service
-
-[Service]
-ExecStart=/usr/sbin/phc2sys -s /dev/ptp0 -c CLOCK_REALTIME -w -S 1.0
-Restart=always
-
-[Install]
-WantedBy=multi-user.target
endef
define LINUXPTP_INSTALL_INIT_SYSTEMD
- $(INSTALL) -D -m 644 $(LINUXPTP_PKGDIR)/linuxptp.service \
- $(TARGET_DIR)/usr/lib/systemd/system/linuxptp.service
- $(INSTALL) -D -m 644 $(LINUXPTP_PKGDIR)/linuxptp-system-clock.service \
- $(TARGET_DIR)/usr/lib/systemd/system/linuxptp-system-clock.service
+ $(INSTALL) -D -m 644 $(LINUXPTP_PKGDIR)/ptp4l.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/ptp4l.service
+ $(INSTALL) -D -m 644 $(LINUXPTP_PKGDIR)/phc2sys.service \
+ $(TARGET_DIR)/usr/lib/systemd/system/phc2sys.service
endef
$(eval $(generic-package))
+++ /dev/null
-[Unit]
-Description=Precision Time Protocol daemon
-After=syslog.target network.target
-Before=time-sync.target
-Wants=time-sync.target
-Wants=linuxptp-system-clock.service
-
-[Service]
-ExecStart=/usr/sbin/ptp4l -f /etc/linuxptp.cfg
-Restart=always
-
-[Install]
-WantedBy=multi-user.target
--- /dev/null
+[Unit]
+Description=Precision Time Protocol system clock synchronization
+After=ptp4l.service
+
+[Service]
+ExecStart=/usr/sbin/phc2sys -s /dev/ptp0 -c CLOCK_REALTIME -w -S 1.0
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+[Unit]
+Description=Precision Time Protocol daemon
+After=syslog.target network.target
+Before=time-sync.target
+Wants=time-sync.target
+Wants=phc2sys.service
+
+[Service]
+ExecStart=/usr/sbin/ptp4l -f /etc/linuxptp.cfg
+Restart=always
+
+[Install]
+WantedBy=multi-user.target