package/linuxptp: make initscript options configurable
authorHeiko Thiery <heiko.thiery@gmail.com>
Thu, 12 Mar 2020 19:04:34 +0000 (20:04 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 14 Mar 2020 14:32:42 +0000 (15:32 +0100)
commit248229e3b77155be991fdc5c3379bf2ec35e937f
tree6a3baf469c8310a38175aac375a7e40d860bb41d
parentf783486d07b24708a5bf45ad713353a2f90b926b
package/linuxptp: make initscript options configurable

The "package/busybox/S01sysklogd" is taken as template to change the
init script of the linuxptp daemon. The init script is split two parts
because there are 2 daemons (ptp4l and phc2sys).

Let the user supply its own options in /etc/default/ptp4l and
/etc/default/phc2sys.

This patch also fixes an issue with the creation of the pid file that is
needed to properly stop the daemon again.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Tested-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/linuxptp/S65linuxptp [deleted file]
package/linuxptp/S65ptp4l [new file with mode: 0644]
package/linuxptp/S66phc2sys [new file with mode: 0644]
package/linuxptp/linuxptp.mk