On Tue, May 24, 2016 at 12:48:58PM +0200, Juergen Borleis wrote:
> The package comes with systemd support. This change makes use of it.

Please add an option for this.

Michael

> 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]

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to