| 1 |
.TH HWCLOCK 5 "Dec 2020" "" "Debian Administrator's Manual" |
| 2 |
.SH NAME |
| 3 |
hwclock \- settings that affect the behaviour of the hwclock init script |
| 4 |
.SH DESCRIPTION |
| 5 |
The |
| 6 |
.I /etc/default/hwclock |
| 7 |
file contains settings in POSIX format: |
| 8 |
.IP "" .5i |
| 9 |
VAR=VAL |
| 10 |
.PP |
| 11 |
Only one assignment is allowed per line. |
| 12 |
Comments (starting with '#') are also allowed. |
| 13 |
|
| 14 |
.SH SETTINGS |
| 15 |
The following settings can be set. |
| 16 |
|
| 17 |
.IP \fBHCTOSYS_DEVICE\fP |
| 18 |
The hardware clock device you want to use. Defaults to \fBrtc0\fP. |
| 19 |
It should probably match the CONFIG_RTC_HCTOSYS_DEVICE kernel config |
| 20 |
option. |
| 21 |
|
| 22 |
If you change this, you also need to install a custom udev rule, |
| 23 |
mirroring \fB/usr/lib/udev/rules.d/85-hwclock.rules\fP. Otherwise, |
| 24 |
the hardware clock device will be ignored during boot. |
| 25 |
|
| 26 |
On almost all systems, this should not be changed. |
| 27 |
|
| 28 |
.SH NOTES |
| 29 |
|
| 30 |
On systems using systemd as init, the hwclock init script is ignored. |
| 31 |
|
| 32 |
.SH SEE ALSO |
| 33 |
.BR hwclock (8), |
| 34 |
.BR systemd-timesyncd.service (8) |