[pkg-fso-commits] [SCM] Automatic Display Manager branch, pamhelper, updated. debian/0.1-52-g76526e2

Enrico Zini enrico at enricozini.org
Mon Feb 23 17:50:37 UTC 2009


The following commit has been merged in the pamhelper branch:
commit 76526e2bfdef4027f4a0c994ec0e98054e3811f6
Author: Enrico Zini <enrico at enricozini.org>
Date:   Mon Feb 23 17:51:47 2009 +0000

    Provide an upgrade path for the openmoko

diff --git a/debian/nodm.postinst b/debian/nodm.postinst
index 88e4c30..c15eb76 100644
--- a/debian/nodm.postinst
+++ b/debian/nodm.postinst
@@ -6,6 +6,14 @@ set -e
 . /usr/share/debconf/confmodule
 
 if [ "$1" = "configure" ] ; then
+    if [ -n "$2" ] && dpkg --compare-versions "$2" lt "0.2"; then
+	# Before version 0.2, nodm was only used on the OpenMoko.  To
+	# guarantee a smooth upgrade, we can safely override debconf here
+	# using the openmoko parameters.
+	db_set nodm/enabled true
+	db_set nodm/x_options "vt3 -nolisten tcp"
+    fi
+
     # Update /etc/default/nodm
     db_get nodm/enabled
     NODM_ENABLED="$RET"

-- 
Automatic Display Manager



More information about the pkg-fso-commits mailing list