[PATCH 2/2] Point out how to switch runsystem only if upgrade just switched it.
---
debian/initscripts.lintian-overrides | 1 +
debian/initscripts.postinst | 11 +++++------
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/debian/initscripts.lintian-overrides b/debian/initscripts.lintian-overrides
index 6b27b21..650ad01 100644
--- a/debian/initscripts.lintian-overrides
+++ b/debian/initscripts.lintian-overrides
@@ -24,3 +24,4 @@ initscripts: init.d-script-missing-dependency-on-remote_fs etc/init.d/mountnfs.s
initscripts: init.d-script-missing-dependency-on-remote_fs etc/init.d/halt: required-stop
initscripts: init.d-script-possible-missing-stop etc/init.d/umountroot 1
initscripts: unusual-interpreter etc/init.d/skeleton #!/lib/init/init-d-script
+initscripts: maintainer-script-should-not-use-update-alternatives-set
diff --git a/debian/initscripts.postinst b/debian/initscripts.postinst
index 7288c2c..731d360 100755
--- a/debian/initscripts.postinst
+++ b/debian/initscripts.postinst
@@ -243,13 +243,12 @@ then
if [ "$current" != "$new" ]; then
echo "Switching from runsystem.$current to runsystem.$new."
echo
+ echo "You can use update-alternatives --config runsystem to select"
+ echo "the runsystem to use."
+ echo
+ echo "You must use halt-hurd or reboot-hurd to halt or reboot the"
+ echo "system whenever you change the runsystem."
fi
-
- echo "You can use update-alternatives --config runsystem to select"
- echo "the runsystem to use."
- echo
- echo "You must use halt-hurd or reboot-hurd to halt or reboot the"
- echo "system whenever you change the runsystem."
fi
# Ensure we have a random seed on first boot.
--
1.9.1
Reply to: