diff options
author | Bill Nottingham <notting@redhat.com> | 2008-02-01 22:25:07 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-02-01 22:25:07 +0000 |
commit | b364ab51d8794e5f336fbb0ba7ee746bceac2c48 (patch) | |
tree | fc28311a364ecd3d03a47c400e2eda67c5cdac3b /rc.d | |
parent | 09e562fcdce7c9040a934f44554fe917895e805c (diff) | |
download | initscripts-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 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index a1dab044..ee0c5575 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -257,51 +257,11 @@ if [ "$PROMPT" != "no" ]; then echo fi -# Set the system clock. -update_boot_stage RCclock -ARC=0 -SRM=0 -UTC=0 - -if [ -f /etc/sysconfig/clock ]; then - . /etc/sysconfig/clock - - # convert old style clock config to new values - if [ "${CLOCKMODE}" = "GMT" ]; then - UTC=true - elif [ "${CLOCKMODE}" = "ARC" ]; then - ARC=true - fi -fi - -CLOCKDEF="" -CLOCKFLAGS="$CLOCKFLAGS --hctosys" - -case "$UTC" in - yes|true) CLOCKFLAGS="$CLOCKFLAGS --utc" - CLOCKDEF="$CLOCKDEF (utc)" ;; - no|false) CLOCKFLAGS="$CLOCKFLAGS --localtime" - CLOCKDEF="$CLOCKDEF (localtime)" ;; -esac -case "$ARC" in - yes|true) CLOCKFLAGS="$CLOCKFLAGS --arc" - CLOCKDEF="$CLOCKDEF (arc)" ;; -esac -case "$SRM" in - yes|true) CLOCKFLAGS="$CLOCKFLAGS --srm" - CLOCKDEF="$CLOCKDEF (srm)" ;; -esac - -[ -x /sbin/hwclock ] && /sbin/hwclock $CLOCKFLAGS - -action $"Setting clock $CLOCKDEF: `date`" /bin/true - # Fix console loglevel if [ -n "$LOGLEVEL" ]; then /bin/dmesg -n $LOGLEVEL fi - # Only read this once. cmdline=$(cat /proc/cmdline) |