[Initscripts-ng-commits] r685 - in /trunk/src/insserv/debian: changelog insserv.config
kelmo-guest at users.alioth.debian.org
kelmo-guest at users.alioth.debian.org
Sun Mar 2 07:04:56 UTC 2008
Author: kelmo-guest
Date: Sun Mar 2 07:04:56 2008
New Revision: 685
URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=685
Log:
* Modify debian/insserv.config debconf script to honour a preseeded debconf
value enabling dependency based boot on first installation only.
Modified:
trunk/src/insserv/debian/changelog
trunk/src/insserv/debian/insserv.config
Modified: trunk/src/insserv/debian/changelog
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/changelog?rev=685&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Sun Mar 2 07:04:56 2008
@@ -1,5 +1,6 @@
insserv (1.11.0-6) UNRELEASED; urgency=low
+ [ Petter Reinholdtsen ]
* Added override files for at, gom, ifupdown-scripts-zg2 and tspc.
* Correct typo in override file for lvm2.
* Changed postinst and update-bootsystem-insserv to remove the
@@ -18,7 +19,11 @@
- Added German from Erik Schanze (Closes: #467483).
- Added Dutch from Bart Cornelis (Closes: #467418).
- -- Petter Reinholdtsen <pere at debian.org> Mon, 25 Feb 2008 08:41:26 +0100
+ [ Kel Modderman ]
+ * Modify debian/insserv.config debconf script to honour a preseeded debconf
+ value enabling dependency based boot on first installation only.
+
+ -- Kel Modderman <kel at otaku42.de> Sun, 02 Mar 2008 17:01:22 +1000
insserv (1.11.0-5) unstable; urgency=low
Modified: trunk/src/insserv/debian/insserv.config
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/insserv.config?rev=685&op=diff
==============================================================================
--- trunk/src/insserv/debian/insserv.config (original)
+++ trunk/src/insserv/debian/insserv.config Sun Mar 2 07:04:56 2008
@@ -3,6 +3,8 @@
set -e
. /usr/share/debconf/confmodule
+
+db_version 2.0
# Based on code from dash postinst
check_divert() {
@@ -19,6 +21,39 @@
esac
}
+
+if [ "$1" = configure ] && [ -z "$2" ]; then
+ set +e
+ db_fget insserv/enable seen
+ err=$?
+ set -e
+
+ case $err in
+ 0)
+ if [ true = "$RET" ]; then
+ db_get insserv/enable
+ if [ true = "$RET" ] && \
+ ! check_divert status /usr/sbin/update-rc.d \
+ /usr/sbin/update-rc.d-insserv ; then
+ # debconf value has been seen and the value is true, but the
+ # on disk state is false. No previous package version has
+ # given as second argument, therefore the value must have
+ # been preseeded before initial installation. Exit.
+ exit
+ fi
+ fi
+ ;;
+ 10)
+ # insserv/enable seen does not exist
+ ;;
+ *)
+ echo "db_fget exited with $err" >&2
+ exit $err
+ ;;
+ esac
+fi
+
+
# Only update the default from the status on disk if we are already
# installed, and not on first time install, to allow preseeding.
if [ -e /usr/sbin/update-rc.d-insserv ] ; then
More information about the Initscripts-ng-commits
mailing list