Replace /sbin/clock with /sbin/hwclock in documentation and comments

This commit is contained in:
Miroslav Lichvar 2013-12-10 17:04:17 +01:00
parent be14dbffef
commit 3c5cf81e32
4 changed files with 5 additions and 5 deletions

View file

@ -1017,7 +1017,7 @@ in conjuction with the `-r' option.
@item -s
This option will set the system clock from the computer's real-time
clock. This is analogous to supplying the `-s' flag to the
@file{/sbin/clock} program during the Linux boot sequence.
@file{/sbin/hwclock} program during the Linux boot sequence.
Support for real-time clocks is limited at present - the criteria are
described in the section on the @code{rtcfile} directive (@pxref{rtcfile
@ -2704,7 +2704,7 @@ or ends.
If the @code{rtconutc} directive appears, it means the RTC is required
to keep UTC. The directive takes no arguments. It is equivalent to
specifying the @code{-u} switch to the Linux @file{/sbin/clock} program.
specifying the @code{-u} switch to the Linux @file{/sbin/hwclock} program.
@c }}}
@c {{{ rtcsync
@node rtcsync directive

View file

@ -79,7 +79,7 @@ with the \fB-r\fR option.
.B \-s
This option will set the system clock from the computer's real-time
clock. This is analogous to supplying the \fI-s\fR flag to the
\fI/sbin/clock\fR program during the Linux boot sequence.
\fI/sbin/hwclock\fR program during the Linux boot sequence.
Support for real-time clocks is limited at present - the criteria
are described in the section on the \fIrtcfile\fR directive in the

2
rtc.c
View file

@ -144,7 +144,7 @@ RTC_TimeInit(void (*after_hook)(void *), void *anything)
/* ================================================== */
/* Do an initial read of the RTC and set the system time to it. This
is analogous to what /sbin/clock -s -u would do on Linux. */
is analogous to what /sbin/hwclock -s would do on Linux. */
void
RTC_TimePreInit(void)

View file

@ -927,7 +927,7 @@ RTC_Linux_WriteParameters(void)
/* ================================================== */
/* Try to set the system clock from the RTC, in the same manner as
/sbin/clock -s -u would do. We're not as picky about OS version
/sbin/hwclock -s would do. We're not as picky about OS version
etc in this case, since we have fewer requirements regarding the
RTC behaviour than we do for the rest of the module. */