aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-11-17 16:01:57 -0500
committerBill Nottingham <notting@redhat.com>2009-11-17 16:03:06 -0500
commitd26e72d8ee3e6b8e0de656647495efc18ae2e7ed (patch)
tree28cfa67cd984218f9fb107c9bf17c268300f42b9
parent5cae4e332f15153bdd6c5d48b52f70cff239ef39 (diff)
downloadinitscripts-d26e72d8ee3e6b8e0de656647495efc18ae2e7ed.tar
initscripts-d26e72d8ee3e6b8e0de656647495efc18ae2e7ed.tar.gz
initscripts-d26e72d8ee3e6b8e0de656647495efc18ae2e7ed.tar.bz2
initscripts-d26e72d8ee3e6b8e0de656647495efc18ae2e7ed.tar.xz
initscripts-d26e72d8ee3e6b8e0de656647495efc18ae2e7ed.zip
Old-style RTC devices won't have the 'hctosys' attribute. Handle them correctly. (#537595)
-rw-r--r--udev/rules.d/88-clock.rules3
1 files changed, 1 insertions, 2 deletions
diff --git a/udev/rules.d/88-clock.rules b/udev/rules.d/88-clock.rules
index 8beeeb88..c2e83e99 100644
--- a/udev/rules.d/88-clock.rules
+++ b/udev/rules.d/88-clock.rules
@@ -1,4 +1,3 @@
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"
+ACTION=="add", ENV{MAJOR}=="10", ENV{MINOR}=="135", RUN+="/sbin/hwclock --hctosys --rtc=/dev/%k"