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
b01a7fef
Commit
b01a7fef
authored
May 27, 2020
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add profile option in ptp4l wrapper script
parent
ee364cac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
+31
-2
scripts/run_ptp4l
scripts/run_ptp4l
+31
-2
No files found.
scripts/run_ptp4l
View file @
b01a7fef
...
...
@@ -2,5 +2,34 @@
linuxptp_dir
=
/home/oli/linuxptp
echo
"ptp4l -i eth0 -f
$linuxptp_dir
/configs/gPTP.cfg --step_threshold=1 -m -S &> ~/ptp4l_log &"
;
ptp4l
-i
eth0
-f
$linuxptp_dir
/configs/gPTP.cfg
--step_threshold
=
1
-m
-S
&> ~/ptp4l_log &
telecom_profile
=
"G.8265.1.cfg"
gPTP_profile
=
"gPTP.cfg"
profile
=
$telecom_profile
usage
()
{
echo
"Usage:
$0
[-p telecom|gPTP|OTHER]"
1>&2
;
exit
1
;
}
while
getopts
"p:q:"
opt
;
do
case
"
${
opt
}
"
in
p
)
input_profile
=
${
OPTARG
}
if
[
$input_profile
==
"telecom"
]
;
then
profile
=
$telecom_profile
elif
[
$input_profile
==
"gPTP"
]
;
then
profile
=
$gPTP_profile
else
profile
=
$input_profile
fi
;;
*
)
usage
;;
esac
done
shift
$((
OPTIND-1
))
echo
"ptp4l -i eth0 -f
$linuxptp_dir
/configs/
$profile
--step_threshold=1 -m -S &> ~/ptp4l_log &"
;
ptp4l
-i
eth0
-f
$linuxptp_dir
/configs/
$profile
--step_threshold
=
1
-m
-S
&> ~/ptp4l_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