[pkg-fso-commits] [SCM] Automatic Display Manager branch, master, updated. debian/0.6-1-13-gb7c982a
Joachim Breitner
mail at joachim-breitner.de
Tue Feb 8 17:58:02 UTC 2011
The following commit has been merged in the master branch:
commit 88487176f4a0da68a041f649ea23c9a231645c22
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Tue Feb 8 23:18:37 2011 +0530
Included upstart job (Closes: #602511). Thanks to Luigi Capriotti for providing it.
diff --git a/debian/changelog b/debian/changelog
index 0da5847..6022379 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+nodm (0.7-2) UNRELEASED; urgency=low
+
+ * Included upstart job (Closes: #602511). Thanks to Luigi Capriotti for
+ providing it.
+
+ -- Joachim Breitner <nomeata at debian.org> Tue, 08 Feb 2011 23:17:30 +0530
+
nodm (0.7-1) unstable; urgency=low
* New upstream version
diff --git a/debian/nodm.upstart b/debian/nodm.upstart
new file mode 100644
index 0000000..ec6fc68
--- /dev/null
+++ b/debian/nodm.upstart
@@ -0,0 +1,65 @@
+# nodm - nodm Display Manager
+#
+
+description "Automatic Display Manager"
+
+start on (filesystem
+ and started dbus
+ and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
+ or stopped udevtrigger))
+stop on runlevel [016]
+
+emits starting-dm
+
+script
+ NODM_ENABLED=no
+ NODM_XINIT=/usr/bin/xinit
+ NODM_FIRST_VT=7
+ NODM_XSESSION=/etc/X11/Xsession
+ NODM_X_OPTIONS="-nolisten tcp"
+ NODM_USER=root
+ NODM_MIN_SESSION_TIME=60
+
+ # If you change the user to a non-root user, make sure you
+ # set allowed_users=anybody in /etc/X11/Xwrapper.config
+
+ if [ -f /etc/default/nodm ]
+ then
+ . /etc/default/nodm
+ fi
+
+ export NODM_XINIT NODM_XSESSION NODM_X_OPTIONS NODM_USER NODM_MIN_SESSION_TIME NODM_FIRST_VT
+
+ if [ -n "$UPSTART_EVENTS" ] ; then
+ # Gracefully exit if the package or its dependencies have been removed (but not purged).
+ [ -x /usr/sbin/nodm -a -x "$NODM_XSESSION" -a -x "$NODM_XINIT" ] || { stop; exit 0; }
+
+ if [ "$NODM_ENABLED" = "no" ] || [ "$NODM_ENABLED" = "false" ] ; then
+ stop; exit 0;
+ fi
+
+ # Check kernel command-line for inhibitors
+ for ARG in $(cat /proc/cmdline)
+ do
+ case "${ARG}" in
+ text|-s|s|S|single)
+ plymouth quit || : # We have the ball here
+ exit 0
+ ;;
+ esac
+ done
+ fi
+
+ initctl emit starting-dm
+
+ plymouth deactivate || true
+ plymouth quit --wait --retain-splash || true
+
+ exec /usr/sbin/nodm
+end script
+
+pre-stop script
+ #clear >/dev/tty7 || true
+end script
+
+
--
Automatic Display Manager
More information about the pkg-fso-commits
mailing list