slim: Add SLiM X desktop manager and patches to ensure it is secure and supports...
[openpandora.oe.git] / recipes / slim / slim / rc.slim
diff --git a/recipes/slim/slim/rc.slim b/recipes/slim/slim/rc.slim
new file mode 100644 (file)
index 0000000..87bc714
--- /dev/null
@@ -0,0 +1,28 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          slim
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: SLiM Display Manager (and wrapper script)
+# Description:       init script for the SLiM Display Manager
+### END INIT INFO
+
+case $1 in
+start)
+       rm /var/run/slim.lock
+       /usr/bin/slim-dynwm -d
+       ;;
+stop)
+       killall /usr/bin/slim-dynwm
+       ;;
+restart)
+       $0 stop
+       sleep 2
+       $0 start
+       ;;
+*)
+       echo "usage: $0 [start|stop|restart]"
+       ;;
+esac
+
+# End of file