]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Replace /sbin/clock with /sbin/hwclock in documentation and comments
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 10 Dec 2013 16:04:17 +0000 (17:04 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 10 Dec 2013 16:54:05 +0000 (17:54 +0100)
chrony.texi.in
chronyd.8.in
rtc.c
rtc_linux.c

index 801e2fa6610d9167aa79adfe38bc56469e1ef051..3eb2730212385138f9281c24be4ec1d37f904841 100644 (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
index b62805b1416bf9f218da37564ee0566e2c8579fd..63eaab84eb6ba186b61143965eb5c8fd04e08170 100644 (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
diff --git a/rtc.c b/rtc.c
index 2557dd86d3db9fef52a891ddb7bd9b9179cc1cfb..490017907b07d4120a4e7e533bffeab723f9e3f9 100644 (file)
--- a/rtc.c
+++ b/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
-   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)
index d3b62f98070ecca4cd71cd55a2349be65d519425..d6b5f33cb4a87d5b359fbdfe4cbbd7851113494c 100644 (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. */