summaryrefslogtreecommitdiff
path: root/package/x11r7/xapp_xdm/S99xdm
diff options
context:
space:
mode:
Diffstat (limited to 'package/x11r7/xapp_xdm/S99xdm')
-rw-r--r--package/x11r7/xapp_xdm/S99xdm25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/x11r7/xapp_xdm/S99xdm b/package/x11r7/xapp_xdm/S99xdm
new file mode 100644
index 000000000..4dd1cd888
--- /dev/null
+++ b/package/x11r7/xapp_xdm/S99xdm
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+XDM_BIN=/usr/bin/xdm
+
+case "$1" in
+ start)
+ echo -n "Starting XDM: "
+ $XDM_BIN
+ echo "done"
+ ;;
+ stop)
+ echo "Stopping XDM"
+ killall -q xdm
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart}"
+ exit 1
+ ;;
+esac
+
+exit 0