Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Software
Manage
Activity
Members
Labels
Plan
Issues
99
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit Switch - Software
Commits
a02d86c3
Commit
a02d86c3
authored
3 months ago
by
Adam Wujek
Browse files
Options
Downloads
Patches
Plain Diff
rootfs/etc/init.d/wr_date: add support for IRIG-B
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
c422b073
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
userspace/rootfs_override/etc/init.d/wr_date
+15
-0
15 additions, 0 deletions
userspace/rootfs_override/etc/init.d/wr_date
with
15 additions
and
0 deletions
userspace/rootfs_override/etc/init.d/wr_date
+
15
−
0
View file @
a02d86c3
...
...
@@ -116,11 +116,26 @@ nmea_to_hwclk()
date_set
=
1
}
irigb_to_hwclk
()
{
#set host and time from IRIB-B interface
eval echo
"Using IRIG-B"
$LOGPIPE
eval
/wr/bin/wr_date irigb
enable
get tohost
$LOGPIPE
if
[
$?
-ne
0
]
;
then
eval echo
"Getting time from IRIG-B failed"
$LOGPIPE
return
fi
eval
/wr/bin/wr_date
set
host
$LOGPIPE
date_set
=
1
}
date_set
=
0
if
[
"
$CONFIG_TOD_SOURCE_NMEA
"
=
"y"
]
;
then
nmea_to_hwclk
elif
[
"
$CONFIG_TOD_SOURCE_IRIGB
"
=
"y"
]
;
then
irigb_to_hwclk
elif
[
"
$CONFIG_TOD_SOURCE_NTP
"
=
"y"
]
;
then
# Check whether there is the config file
if
[
-f
$F
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment