Received: (at submit) by bugs.debian.org; 17 Dec 2000 16:08:56 +0000 From roessler@sobolev.does-not-exist.org Sun Dec 17 10:08:56 2000 Return-path: Received: from mail.loop.de (mail.vi-internet.de) [195.182.114.102] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 147gMq-0006Bk-00; Sun, 17 Dec 2000 10:08:56 -0600 Received: from sobolev.does-not-exist.org ([62.180.210.16]) by mail.vi-internet.de with Microsoft SMTPSVC(5.5.1877.537.53); Sun, 17 Dec 2000 17:08:52 +0100 Received: by sobolev.does-not-exist.org (Postfix, from userid 1000) id DC5D52ED13; Sat, 16 Dec 2000 20:38:14 +0100 (CET) From: Thomas Roessler Subject: apmd: apmd's 00hwclock script should halt ntpd To: submit@bugs.debian.org X-Mailer: bug 3.2.10 Message-Id: <20001216193814.DC5D52ED13@sobolev.does-not-exist.org> Date: Sat, 16 Dec 2000 20:38:14 +0100 (CET) Delivered-To: submit@bugs.debian.org Package: apmd Version: 3.0final-1 Severity: wishlist I'd suggest to change that hwclock script to the one described below, so ntpd doesn't get confused. -- System Information Debian Release: 2.2 Kernel Version: Linux sobolev 2.4.0-test11 #17 Sat Dec 16 20:26:05 CET 2000 i686 unknown Versions of the packages apmd depends on: ii libc6 2.1.3-13 GNU C Library: Shared libraries and Timezone ii xlib6g 3.3.6-11potato shared libraries required by X clients --- Begin /etc/apm/event.d/00hwclock (modified conffile) #!/bin/sh . /etc/default/rcS if [ -n "$UTC$GMT" -a "$UTC" != "no" ]; then GMT="-u" fi if [ -x /sbin/clock ]; then CLOCK=clock else CLOCK=hwclock fi if [ "$1" = suspend ]; then [ -x /etc/init.d/ntp ] && /etc/init.d/ntp stop $CLOCK -w $GMT elif [ "$1" = resume ]; then $CLOCK -s $GMT [ -x /etc/init.d/ntp ] && /etc/init.d/ntp start fi --- End /etc/apm/event.d/00hwclock