aboutsummaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-02-01 22:25:07 +0000
committerBill Nottingham <notting@redhat.com>2008-02-01 22:25:07 +0000
commitb364ab51d8794e5f336fbb0ba7ee746bceac2c48 (patch)
treefc28311a364ecd3d03a47c400e2eda67c5cdac3b /udev
parent09e562fcdce7c9040a934f44554fe917895e805c (diff)
downloadinitscripts-b364ab51d8794e5f336fbb0ba7ee746bceac2c48.tar
initscripts-b364ab51d8794e5f336fbb0ba7ee746bceac2c48.tar.gz
initscripts-b364ab51d8794e5f336fbb0ba7ee746bceac2c48.tar.bz2
initscripts-b364ab51d8794e5f336fbb0ba7ee746bceac2c48.tar.xz
initscripts-b364ab51d8794e5f336fbb0ba7ee746bceac2c48.zip
use udev rules to set the clock, avoiding issues with modular rtcs (#290731)
Diffstat (limited to 'udev')
-rw-r--r--udev/rules.d/88-clock.rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/udev/rules.d/88-clock.rules b/udev/rules.d/88-clock.rules
new file mode 100644
index 00000000..18aa7a2c
--- /dev/null
+++ b/udev/rules.d/88-clock.rules
@@ -0,0 +1,2 @@
+ACTION=="add", SUBSYSTEM=="rtc", RUN+="/sbin/hwclock --hctosys --rtc=/dev/%k"
+ACTION=="add", MAJOR==10, MINOR==135, RUN+="/sbin/hwclock --hctosys --rtc=/dev/%k"