Replace /sbin/clock with /sbin/hwclock in documentation and comments
This commit is contained in:
parent
be14dbffef
commit
3c5cf81e32
4 changed files with 5 additions and 5 deletions
|
@ -1017,7 +1017,7 @@ in conjuction with the `-r' option.
|
||||||
@item -s
|
@item -s
|
||||||
This option will set the system clock from the computer's real-time
|
This option will set the system clock from the computer's real-time
|
||||||
clock. This is analogous to supplying the `-s' flag to the
|
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
|
Support for real-time clocks is limited at present - the criteria are
|
||||||
described in the section on the @code{rtcfile} directive (@pxref{rtcfile
|
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
|
If the @code{rtconutc} directive appears, it means the RTC is required
|
||||||
to keep UTC. The directive takes no arguments. It is equivalent to
|
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 }}}
|
||||||
@c {{{ rtcsync
|
@c {{{ rtcsync
|
||||||
@node rtcsync directive
|
@node rtcsync directive
|
||||||
|
|
|
@ -79,7 +79,7 @@ with the \fB-r\fR option.
|
||||||
.B \-s
|
.B \-s
|
||||||
This option will set the system clock from the computer's real-time
|
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
|
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
|
Support for real-time clocks is limited at present - the criteria
|
||||||
are described in the section on the \fIrtcfile\fR directive in the
|
are described in the section on the \fIrtcfile\fR directive in the
|
||||||
|
|
2
rtc.c
2
rtc.c
|
@ -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
|
/* 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
|
void
|
||||||
RTC_TimePreInit(void)
|
RTC_TimePreInit(void)
|
||||||
|
|
|
@ -927,7 +927,7 @@ RTC_Linux_WriteParameters(void)
|
||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
/* Try to set the system clock from the RTC, in the same manner as
|
/* 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
|
etc in this case, since we have fewer requirements regarding the
|
||||||
RTC behaviour than we do for the rest of the module. */
|
RTC behaviour than we do for the rest of the module. */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue