diff options
Diffstat (limited to 'recipes-lxde/lxdm/lxdm/lxdm.sh')
-rw-r--r-- | recipes-lxde/lxdm/lxdm/lxdm.sh | 29 |
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 + |