]> err.no Git - util-linux/commitdiff
rules: correct LSB init data for hwclockfirst.sh
authorLaMont Jones <lamont@debian.org>
Sun, 30 Dec 2007 17:34:34 +0000 (10:34 -0700)
committerLaMont Jones <lamont@debian.org>
Sun, 30 Dec 2007 17:34:42 +0000 (10:34 -0700)
Addresses-Debian-Bug: 458346
Signed-off-by: LaMont Jones <lamont@debian.org>
debian/rules

index 5907e66e7bd3a5a5317c4d0e3a4b71bf1d87e63c..4af971eb2bb3fb244b5ffe264893ad687acaed2d 100755 (executable)
@@ -104,10 +104,8 @@ endif
        install -m 644 debian/mime.util-linux debian/util-linux/usr/lib/mime/packages/util-linux
        if [ -f debian/util-linux/sbin/hwclock ] ; then \
            install -m 755 debian/hwclock.sh debian/util-linux/etc/init.d/hwclock.sh; \
-       fi
-       if [ -f debian/util-linux/sbin/hwclock ] ; then \
            install -m 755 debian/hwclock.sh debian/util-linux/etc/init.d/hwclockfirst.sh; \
-           sed -i '/^FIRST=/s/no/yes/' debian/util-linux/etc/init.d/hwclockfirst.sh; \
+           sed -ie '/^FIRST=/s/no/yes/' -e '/Provides:/s/ck/ckfirst/' debian/util-linux/etc/init.d/hwclockfirst.sh; \
        fi
 ifneq ($(DISTRO),Debian)
        if [ -f debian/util-linux/sbin/hwclock ] ; then \