summaryrefslogtreecommitdiff
path: root/recipes-lxde/lxdm/files/init
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-lxde/lxdm/files/init')
-rw-r--r--recipes-lxde/lxdm/files/init41
1 files changed, 0 insertions, 41 deletions
diff --git a/recipes-lxde/lxdm/files/init b/recipes-lxde/lxdm/files/init
deleted file mode 100644
index d8bb4eb..0000000
--- a/recipes-lxde/lxdm/files/init
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-
-. /etc/init.d/functions
-
-DAEMON=/usr/sbin/lxdm
-PIDDIR=/var/run
-PIDFILE=$PIDDIR/lxdm.pid
-
-for x in $(cat /proc/cmdline); do
- case $x in
- x11=false)
- echo "LXDM disabled"
- exit 0;
- ;;
- esac
-done
-
-case "$1" in
- start)
- echo "Starting LXDM"
- start-stop-daemon --start --quiet --pidfile $PIDFILE -m -b \
- --exec $DAEMON
- ;;
-
- stop)
- echo "Stopping LXDM"
- start-stop-daemon --stop --quiet --pidfile $PIDFILE
- ;;
-
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
-
- *)
- echo "usage: $0 { start | stop | restart }"
- ;;
-esac
-
-exit 0