Package: util-linux
Version: 2.13.1.1-1
Severity: important
Tags: patch
User: [EMAIL PROTECTED]
Usertags: incorrect-dependency

The hwclockfirst.sh initscript is generated at package build time, and is
almost identical to hwclock.sh in every way, except it is not intended to be
run during runlevels 0 and 6 as configured via update-rc.d for the standard
boot system.

Currently, system clock is saved twice during shutdown when using a dependency
based boot system due to incorrect LSB Default-Stop field.

Attached patch should fix the problem.

Thanks, Kel.
---
 debian/rules |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/debian/rules b/debian/rules
index 7c44545..fd2029b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -115,6 +115,7 @@ endif
            install -m 755 debian/hwclock.sh 
debian/util-linux/etc/init.d/hwclockfirst.sh; \
            sed -i -e '/^FIRST=/s/no/yes/' -e '/Provides:/s/ck/ckfirst/' \
                -e '/Required-Stop:/s/.local_fs/umountroot/' \
+               -e '/Default-Start:/a# Default-Stop:' -e '/Default-Stop:/d' \
                debian/util-linux/etc/init.d/hwclockfirst.sh; \
        fi
 ifneq ($(DISTRO),Debian)
---



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

Reply via email to