From: LaMont Jones Date: Thu, 13 Aug 2009 12:09:24 +0000 (-0600) Subject: hwclock*.sh: one more round of header tweaks. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d17bac667fafd4decb4df37823503a06bdcee84;p=util-linux hwclock*.sh: one more round of header tweaks. Addresses-Debian-Bug: 520607 Signed-off-by: Petter Reinholdtsen Signed-off-by: LaMont Jones --- diff --git a/debian/hwclock.sh b/debian/hwclock.sh index 40eea8c0..9f5f345d 100644 --- a/debian/hwclock.sh +++ b/debian/hwclock.sh @@ -18,7 +18,7 @@ ### BEGIN INIT INFO # Provides: hwclock -# Required-Start: $local_fs +# Required-Start: checkroot # Required-Stop: $local_fs # Default-Start: S # Default-Stop: 0 6 diff --git a/debian/rules b/debian/rules index e91e7840..5f934769 100755 --- a/debian/rules +++ b/debian/rules @@ -107,8 +107,9 @@ endif install -m 755 debian/hwclock.sh debian/util-linux/etc/init.d/hwclock.sh; \ 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-Start:/s/.local_fs/mountdevsubfs/' \ - -e '/Required-Stop:/s/.local_fs/umountroot/' \ + -e '/Required-Start:/s/checkroot/mountdevsubfs/' \ + -e '/Required-Start:/a# Required-Stop:' -e '/Required-Stop:/d' \ + -e '/Default-Start:/a# X-Start-Before: checkroot' \ -e '/Default-Start:/a# Default-Stop:' -e '/Default-Stop:/d' \ debian/util-linux/etc/init.d/hwclockfirst.sh; \ fi