Skip to content

Commit

Permalink
Merge pull request #1891 from ghaerr/clock
Browse files Browse the repository at this point in the history
[cmds] Reorganize clock.c source code, add AST hardware RTC support
  • Loading branch information
ghaerr authored Apr 26, 2024
2 parents a7684d7 + 3d4e386 commit 54d51f7
Show file tree
Hide file tree
Showing 3 changed files with 537 additions and 299 deletions.
10 changes: 3 additions & 7 deletions elkscmd/man/man8/clock.8
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
clock \- Read or modify the hardware clock
.SH SYNOPSIS
.B clock
.B [\-u] {\-r,\-w,\-s,\-a,\-v}
.B [\-u] {\-r,\-w,\-s,\-A}
.SH DESCRIPTION
.BR clock
is used to read from or write to the hardware clock, and to
Expand All @@ -22,12 +22,8 @@ Write the system time to the hardware clock.
.B "\-s"
Set the system time from the hardware clock.
.TP
.B "\-s"
Set the system time from the hardware clock, adjust for systematic errors,
and then write the system time to the hardware clock.
.TP
.B "\-v"
Print version information and exit.
.B "\-A"
Assume AST clock hardware.
.SH EXIT STATUS
.TP
.I 0
Expand Down
2 changes: 1 addition & 1 deletion elkscmd/rootfs_template/bootopts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## max 511 bytes
#TZ=MDT8
#TZ=MDT6
#LOCALIP=10.0.2.16
#HOSTNAME=elks16
#ne0=12,0x300,,0x80
Expand Down
Loading

0 comments on commit 54d51f7

Please sign in to comment.