[pkg-fso-commits] [SCM] Automatic Display Manager branch, master, updated. nodm/0.3-2-25-g6b59ed6

Enrico Zini enrico at enricozini.org
Thu Jul 23 23:44:19 UTC 2009


The following commit has been merged in the master branch:
commit cb3641ecc8de686a5a28c1b218d3810b2180b85f
Author: Enrico Zini <enrico at enricozini.org>
Date:   Fri Jul 24 01:20:17 2009 +0200

    Add the new config file entry to /etc/default/nodm

diff --git a/debian/nodm.postinst b/debian/nodm.postinst
index b28a61f..5452ebe 100644
--- a/debian/nodm.postinst
+++ b/debian/nodm.postinst
@@ -14,6 +14,17 @@ if [ "$1" = "configure" ] ; then
 	db_set nodm/first_vt "3"
 	db_set nodm/x_options "-nolisten tcp"
     fi
+    if [ -n "$2" ] && dpkg --compare-versions "$2" lt "0.5"; then
+	# Add the NODM_FIRST_VT entry to the config file if it is missing
+	if [ -s /etc/default/nodm ] && ! grep -q NODM_FIRST_VT /etc/default/nodm
+	then
+		cat <<EOF >> /etc/default/nodm
+
+# First vt to try when looking for free VTs
+NODM_FIRST_VT=7
+EOF
+	fi
+    fi
 
     # Update /etc/default/nodm
     db_get nodm/enabled

-- 
Automatic Display Manager



More information about the pkg-fso-commits mailing list