Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
tsn-measures
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
tsn-measures
Commits
045bd7e0
Commit
045bd7e0
authored
Aug 27, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix run-ptpl hardware timestamping mode
parent
cd24a65e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
scripts/run-ptp4l
scripts/run-ptp4l
+7
-2
No files found.
scripts/run-ptp4l
View file @
045bd7e0
...
@@ -30,6 +30,7 @@ while getopts "i:o:p:rsH" opt; do
...
@@ -30,6 +30,7 @@ while getopts "i:o:p:rsH" opt; do
interface
=
${
OPTARG
}
interface
=
${
OPTARG
}
;;
;;
H
)
H
)
hardware_ts
=
1
opts+
=
" -H "
opts+
=
" -H "
;;
;;
o
)
o
)
...
@@ -52,6 +53,10 @@ done
...
@@ -52,6 +53,10 @@ done
shift
$((
OPTIND-1
))
shift
$((
OPTIND-1
))
if
[
-z
"
$hardware_ts
"
]
;
then
opts+
=
" -S"
fi
opts+
=
"-i
$interface
"
opts+
=
"-i
$interface
"
if
[
$profile_name
==
"none"
]
;
then
if
[
$profile_name
==
"none"
]
;
then
...
@@ -69,5 +74,5 @@ log=ptp4l_${interface}_log
...
@@ -69,5 +74,5 @@ log=ptp4l_${interface}_log
if
[
-n
"
$reset
"
]
;
then
if
[
-n
"
$reset
"
]
;
then
killall ptp4l
;
killall ptp4l
;
fi
fi
echo
"ptp4l
$opts
--step_threshold=1 -m
-S
&> ~/
$log
&"
;
echo
"ptp4l
$opts
--step_threshold=1 -m &> ~/
$log
&"
;
ptp4l
$opts
--step_threshold
=
1
-m
-S
&> ~/
$log
&
ptp4l
$opts
--step_threshold
=
1
-m
&> ~/
$log
&
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment