summaryrefslogtreecommitdiffstats
path: root/package/linuxptp/linuxptp.service
diff options
context:
space:
mode:
authorPetr Kulhavy <brain@jikos.cz>2017-06-07 20:44:29 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-06-11 15:57:16 +0200
commit09f1b8011b580ae4ce21b6f0e716d69b86efa26a (patch)
tree47b071c5d9aa072b5ae8a7f30a41f1af7b35c55a /package/linuxptp/linuxptp.service
parent8a3accb72cd36271b0eb3a683f6a9301253654d8 (diff)
downloadbuildroot-09f1b8011b580ae4ce21b6f0e716d69b86efa26a.tar.gz
buildroot-09f1b8011b580ae4ce21b6f0e716d69b86efa26a.zip
linuxptp: new package
Add the Linux PTP Project package. http://linuxptp.sourceforge.net/ The SysV and systemd init scripts start the daemon in slave-only mode on eth0 and synchronize the system clock to PTP. Signed-off-by: Petr Kulhavy <brain@jikos.cz> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/linuxptp/linuxptp.service')
-rw-r--r--package/linuxptp/linuxptp.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/linuxptp/linuxptp.service b/package/linuxptp/linuxptp.service
new file mode 100644
index 0000000000..f690430633
--- /dev/null
+++ b/package/linuxptp/linuxptp.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Precision Time Protocol daemon
+After=syslog.target network.target
+Wants=linuxptp-system-clock.service
+
+[Service]
+ExecStart=/usr/sbin/ptp4l -f /etc/linuxptp.cfg
+Restart=always
+
+[Install]
+WantedBy=multi-user.target
OpenPOWER on IntegriCloud