summaryrefslogtreecommitdiff
path: root/recipes-lxde/lxdm/lxdm/lxdm.sh
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2012-07-17 09:56:46 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2012-07-17 09:56:46 +0200
commita905fd65a355ca17ea53545a286052e4429d27d2 (patch)
treeb5259fe86878c83408043914d46a563b5108a212 /recipes-lxde/lxdm/lxdm/lxdm.sh
parent32af8f369b9f496b5cdafa8cf171f3cef374a9bd (diff)
append our V1.1 lxde specialities to the oe-tworaz recipes
Diffstat (limited to 'recipes-lxde/lxdm/lxdm/lxdm.sh')
-rw-r--r--recipes-lxde/lxdm/lxdm/lxdm.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-lxde/lxdm/lxdm/lxdm.sh b/recipes-lxde/lxdm/lxdm/lxdm.sh
new file mode 100644
index 0000000..e6e8e23
--- /dev/null
+++ b/recipes-lxde/lxdm/lxdm/lxdm.sh
@@ -0,0 +1,29 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: lxdm
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: LXDM Display Manager (and wrapper script)
+# Description: init script for the LXDM Display Manager
+# Copied from SLIM openembedded recipe
+### END INIT INFO
+
+case $1 in
+ start)
+ /usr/sbin/lxdm -d &> /dev/null
+ ;;
+ stop)
+ killall /usr/sbin/lxdm
+ ;;
+ restart)
+ $0 stop
+ sleep 2
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 [start|stop|restart]"
+ ;;
+esac
+
+# End of file
+