diff options
author | Bill Nottingham <notting@redhat.com> | 1999-06-17 21:09:29 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-06-17 21:09:29 +0000 |
commit | 63debdd941f246f953cfb877be0ae83b6a8dd12c (patch) | |
tree | f2b9ecae3aaa0141d2038521cb8bb72079626053 /rc.d/rc.sysinit | |
parent | 09f669274026dc5712d975a2ce90cf192e2b8a86 (diff) | |
download | initscripts-63debdd941f246f953cfb877be0ae83b6a8dd12c.tar initscripts-63debdd941f246f953cfb877be0ae83b6a8dd12c.tar.gz initscripts-63debdd941f246f953cfb877be0ae83b6a8dd12c.tar.bz2 initscripts-63debdd941f246f953cfb877be0ae83b6a8dd12c.tar.xz initscripts-63debdd941f246f953cfb877be0ae83b6a8dd12c.zip |
add SRM clock support, take out hwclock --adjust
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index d8697483..e2d5b3a8 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -29,6 +29,7 @@ set_the_clock() { # Set the system clock. _CLOCK_SET=1 ARC=0 + SRM=0 UTC=0 if [ -f /etc/sysconfig/clock ]; then . /etc/sysconfig/clock @@ -45,7 +46,6 @@ set_the_clock() { if [ -x /sbin/hwclock ]; then CLOCKFLAGS="--hctosys" CLOCK=/sbin/hwclock - $CLOCK --adjust else CLOCKFLAGS="-a" CLOCK=/sbin/clock @@ -64,6 +64,11 @@ set_the_clock() { CLOCKFLAGS="$CLOCKFLAGS -A"; CLOCKDEF="$CLOCKDEF (arc)"; ;; + case "$SRM" in + yes|true) + CLOCKFLAGS="$CLOCKFLAGS -S"; + CLOCKDEF="$CLOCKDEF (srm)"; + ;; esac fi |