From 7d17bac667fafd4decb4df37823503a06bdcee84 Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Thu, 13 Aug 2009 06:09:24 -0600 Subject: [PATCH] hwclock*.sh: one more round of header tweaks. Addresses-Debian-Bug: 520607 Signed-off-by: Petter Reinholdtsen Signed-off-by: LaMont Jones --- debian/hwclock.sh | 2 +- debian/rules | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.5