diff options
author | Bill Nottingham <notting@redhat.com> | 2009-09-21 16:31:08 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-09-21 16:31:08 -0400 |
commit | 01ce6042fb22268d6b9c50436ccd617b5839b894 (patch) | |
tree | 78bf83e6144dd21bc213eda651a0c6c56744a2aa | |
parent | 281379a74c4a22c8c79cd62a90b07867bd9ccbdb (diff) | |
download | initscripts-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.
-rw-r--r-- | udev/rules.d/88-clock.rules | 6 |
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" |