[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#116780: util-linux: hwclock shouldn't be run



On Tue, 23 Oct 2001, John Goerzen wrote:

> Package: util-linux
> Version: 2.11l-1
> Severity: important
>
> On many PowerPC machines (maybe all?), the program "clock" should be used
> from powerpc-utils.  Using hwclock actually hangs the bootup procedure
> because it confuses the RTC driver in the kernel.  I suggest that hwclock
> should be split into a separate package so that people can get util-linux
> functionality without rendering their systems unbootable.  Or, at least make
> sure that it's not run by default on powerpc.

Hi John,

hwclock does currently run at bootup on all machines except PowerPC/PReP
(and s390) systems. It's no problem for me to change it, but I need an
_exact_ description on which machines it shouldn't be run (I don't have a
PowerPC machine myself).

IOW I need a replacement for the following part of the postinst:

<--  snip  -->

#       Check if we are PowerPC/PReP architecture
if [ `uname --machine` = "ppc" ]
then
  if [ -f /proc/cpuinfo ]
  then
        Arch=""
        Arch=`cat /proc/cpuinfo |
        (
        read line;
        set -- $line;
        while [ "$1" != "machine" ]
        do
          read line;
          set -- $line;
        done
        echo $3;
        )`
  fi
fi

...

# hwclock does not work on PowerPC/PReP and s390 systems
if [ "$Arch" != "PReP" -a "uname -m" != "s390" ]
then
  update-rc.d -f hwclock.sh remove 2>/dev/null > /dev/null
  update-rc.d hwclock.sh start 50 S . stop 25 0 6 . > /dev/null
  update-rc.d -f hwclockfirst.sh remove 2>/dev/null > /dev/null
  update-rc.d hwclockfirst.sh start 18 S . > /dev/null
fi

<--  snip  -->


cu
Adrian

-- 

Get my GPG key: finger bunk@debian.org | gpg --import

Fingerprint: B29C E71E FE19 6755 5C8A  84D4 99FC EA98 4F12 B400



Reply to: