From: Heiko Thiery <heiko.thiery@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/linuxptp: remove hardcoded interface from config to args
Date: Wed, 20 May 2020 07:16:48 +0200 [thread overview]
Message-ID: <20200520051647.18530-1-heiko.thiery@gmail.com> (raw)
Interface configuration is hard coded in the config file. This will
throw an error when this interace (eth0) is not present.
This patch removes the interface to be used from the config and appends it
to the PTP4L_ARGS. With this the custom arguments can be set via
/etc/defaults/ptp4l.
Cc: Michael Walle <michael@walle.cc>
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
---
package/linuxptp/S65ptp4l | 2 +-
package/linuxptp/linuxptp.cfg | 2 --
package/linuxptp/ptp4l.service | 2 +-
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/package/linuxptp/S65ptp4l b/package/linuxptp/S65ptp4l
index 1b9e3c9300..f888c1026c 100644
--- a/package/linuxptp/S65ptp4l
+++ b/package/linuxptp/S65ptp4l
@@ -7,7 +7,7 @@ DAEMON="ptp4l"
PIDFILE="/var/run/$DAEMON.pid"
-PTP4L_ARGS="-f /etc/linuxptp.cfg"
+PTP4L_ARGS="-f /etc/linuxptp.cfg -i eth0"
# shellcheck source=/dev/null
[ -r "/etc/default/ptp4l" ] && . "/etc/default/ptp4l"
diff --git a/package/linuxptp/linuxptp.cfg b/package/linuxptp/linuxptp.cfg
index f9d02e8d97..376fc85ac7 100644
--- a/package/linuxptp/linuxptp.cfg
+++ b/package/linuxptp/linuxptp.cfg
@@ -15,5 +15,3 @@ delay_mechanism Auto
network_transport UDPv4
time_stamping hardware
step_threshold 1.0
-
-[eth0]
diff --git a/package/linuxptp/ptp4l.service b/package/linuxptp/ptp4l.service
index 07f0b68fad..fb39ee3d94 100644
--- a/package/linuxptp/ptp4l.service
+++ b/package/linuxptp/ptp4l.service
@@ -6,7 +6,7 @@ Wants=time-sync.target
Wants=phc2sys.service
[Service]
-ExecStart=/usr/sbin/ptp4l -f /etc/linuxptp.cfg
+ExecStart=/usr/sbin/ptp4l -f /etc/linuxptp.cfg -i eth0
Restart=always
[Install]
--
2.20.1
next reply other threads:[~2020-05-20 5:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-20 5:16 Heiko Thiery [this message]
2020-05-20 6:26 ` [Buildroot] [PATCH 1/1] package/linuxptp: remove hardcoded interface from config to args Michael Walle
2020-05-21 13:36 ` Thomas Petazzoni
2020-05-21 20:52 ` Heiko Thiery
2020-05-25 7:40 ` Thomas Petazzoni
2020-05-25 9:10 ` Heiko Thiery
2020-05-21 21:21 ` Michael Walle
2020-05-25 9:06 ` Heiko Thiery
2020-05-27 6:51 ` Heiko Thiery
2020-06-15 11:35 ` Heiko Thiery
2020-06-16 19:07 ` Vladimir Oltean
2020-06-18 15:02 ` Heiko Thiery
2020-06-18 16:09 ` Michael Walle
2020-06-18 17:00 ` Vladimir Oltean
2020-06-18 21:20 ` Michael Walle
2020-06-27 18:51 ` Vladimir Oltean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200520051647.18530-1-heiko.thiery@gmail.com \
--to=heiko.thiery@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox