Package: util-linux
Version: 2.13~rc3-1
Severity: minor
Tags: patch

Because I have chrony (NTP daemon) running which keeps /dev/rtc busy and
is only stopped after hwclock on shutdown, I get the following confusing
messages on my console:
  Saving system clock.
  Cannot access the Hardware Clock via any known method.
  Use the --debug option to see details
  Hardware Clock updated to <date>

I suggest just not printing the last line if hwclock exits non-zero
(because hwclock already prints sufficient info about the failure) with
the following change in the /etc/init.d/hwclock.sh stop function.
-       /sbin/hwclock --systohc $GMT $HWCLOCKPARS $BADYEAR
-       verbose_log_action_msg "Hardware Clock updated to `date`"
+       if /sbin/hwclock --systohc $GMT $HWCLOCKPARS $BADYEAR; then
+               verbose_log_action_msg "Hardware Clock updated to `date`"
+       fi

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23-rc2 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages util-linux depends on:
ii  libc6                   2.6.1-1          GNU C Library: Shared libraries
ii  libncurses5             5.6+20070716-1   Shared libraries for terminal hand
ii  libselinux1             2.0.15-2+b1      SELinux shared libraries
ii  libuuid1                1.40.2-1         universally unique id library
ii  lsb-base                3.1-24           Linux Standard Base 3.1 init scrip
ii  tzdata                  2007f-10         time zone and daylight-saving time
ii  zlib1g                  1:1.2.3.3.dfsg-5 compression library - runtime

util-linux recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to