On Tue, Jan 27, 2004 at 03:00:00 +1100, Broun, Bevan wrote: > the /usr/sbin/setclock command was part of the timeconfig rpm for RH8. > There doesnt seem to be a corresponding rpm for RH9. Can anyone tell me > what the RPM is for RH9 or point me to source to compile.
/usr/sbin/setclock (attached, from rh7.3) is simply a shell script which runs /sbin/hwclock. Cheers, John -- whois [EMAIL PROTECTED] GPG key id: 0xD59C360F http://kirriwa.net/john/
#!/bin/sh ARC=0 UTC=0 SRM=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 CLOCKFLAGS="--systohc" case "$UTC" in yes|true) CLOCKFLAGS="$CLOCKFLAGS -u" ;; no|false) CLOCKFLAGS="$CLOCKFLAGS --localtime" ;; esac case "$ARC" in yes|true) CLOCKFLAGS="$CLOCKFLAGS -A" ;; esac case "$SRM" in yes|true) CLOCKFLAGS="$CLOCKFLAGS -S" ;; esac /sbin/hwclock $CLOCKFLAGS
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html