aboutsummaryrefslogtreecommitdiffstats
path: root/udev/rules.d/88-clock.rules
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-09-21 16:31:08 -0400
committerBill Nottingham <notting@redhat.com>2009-09-21 16:31:08 -0400
commit01ce6042fb22268d6b9c50436ccd617b5839b894 (patch)
tree78bf83e6144dd21bc213eda651a0c6c56744a2aa /udev/rules.d/88-clock.rules
parent281379a74c4a22c8c79cd62a90b07867bd9ccbdb (diff)
downloadinitscripts-01ce6042fb22268d6b9c50436ccd617b5839b894.tar
initscripts-01ce6042fb22268d6b9c50436ccd617b5839b894.tar.gz
initscripts-01ce6042fb22268d6b9c50436ccd617b5839b894.tar.bz2
initscripts-01ce6042fb22268d6b9c50436ccd617b5839b894.tar.xz
initscripts-01ce6042fb22268d6b9c50436ccd617b5839b894.zip
Handle both kernels with CONFIG_RTC_HCTOSYS and those without.
Diffstat (limited to 'udev/rules.d/88-clock.rules')
-rw-r--r--udev/rules.d/88-clock.rules6
1 files changed, 4 insertions, 2 deletions
diff --git a/udev/rules.d/88-clock.rules b/udev/rules.d/88-clock.rules
index 831c7ac5..8beeeb88 100644
--- a/udev/rules.d/88-clock.rules
+++ b/udev/rules.d/88-clock.rules
@@ -1,2 +1,4 @@
-ACTION=="add", SUBSYSTEM=="rtc", RUN+="/sbin/hwclock --systz --rtc=/dev/%k"
-ACTION=="add", ENV{MAJOR}=="10", ENV{MINOR}=="135", RUN+="/sbin/hwclock --systz --rtc=/dev/%k"
+ACTION=="add", SUBSYSTEM=="rtc", SYSFS{hctosys}=="1", RUN+="/sbin/hwclock --systz --rtc=/dev/%k"
+ACTION=="add", ENV{MAJOR}=="10", SYSFS{hctosys}=="1", ENV{MINOR}=="135", RUN+="/sbin/hwclock --systz --rtc=/dev/%k"
+ACTION=="add", SUBSYSTEM=="rtc", SYSFS{hctosys}=="0", RUN+="/sbin/hwclock --hctosys --rtc=/dev/%k"
+ACTION=="add", ENV{MAJOR}=="10", SYSFS{hctosys}=="0", ENV{MINOR}=="135", RUN+="/sbin/hwclock --hctosys --rtc=/dev/%k"