The package comes with systemd support. This change makes use of it.

Signed-off-by: Juergen Borleis <[email protected]>
---
 rules/linuxptp.make | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/rules/linuxptp.make b/rules/linuxptp.make
index 59cbb51..f4893a3 100644
--- a/rules/linuxptp.make
+++ b/rules/linuxptp.make
@@ -62,9 +62,15 @@ $(STATEDIR)/linuxptp.targetinstall:
 
        @$(call install_copy, linuxptp, 0, 0, 0755, -, /usr/sbin/ptp4l)
        @$(call install_copy, linuxptp, 0, 0, 0755, -, /usr/sbin/phc2sys)
+       @$(call install_copy, linuxptp, 0, 0, 0755, -, /usr/sbin/phc_ctl)
        @$(call install_copy, linuxptp, 0, 0, 0755, -, /usr/sbin/pmc)
        @$(call install_copy, linuxptp, 0, 0, 0755, -, /usr/sbin/hwstamp_ctl)
        @$(call install_alternative, linuxptp, 0, 0, 0644, /etc/gPTP.conf)
+# systemd support
+       @$(call install_alternative, linuxptp, 0, 0, 0644, 
/lib/systemd/system/ptp4l.service)
+       @$(call install_link, linuxptp, ../ptp4l.service, 
/lib/systemd/system/multi-user.target.wants/ptp4l.service)
+       @$(call install_alternative, linuxptp, 0, 0, 0644, 
/lib/systemd/system/phc2sys.service)
+       @$(call install_link, linuxptp, ../phc2sys.service, 
/lib/systemd/system/multi-user.target.wants/phc2sys.service)
 
        @$(call install_finish, linuxptp)
 
-- 
2.8.1


_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to