diff options
author | Yegor Yefremov <yegorslists@googlemail.com> | 2011-10-10 11:22:00 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2011-12-07 21:31:22 +0100 |
commit | 72a6bd4b5d2734f2c4f2f37589db3ba82829d770 (patch) | |
tree | da237a1dfe890044af9df2124eaeca74de30968b /package/x11r7/xapp_xdm/S99xdm | |
parent | bdb40d8bac210a8457140f2521a045d425ca8e29 (diff) | |
download | buildroot-novena-72a6bd4b5d2734f2c4f2f37589db3ba82829d770.tar.gz buildroot-novena-72a6bd4b5d2734f2c4f2f37589db3ba82829d770.zip |
xdm: install startup script
install S99xdm to /etc/init.d to start XDM automatically
[Peter: Small cleanups]
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/x11r7/xapp_xdm/S99xdm')
-rw-r--r-- | package/x11r7/xapp_xdm/S99xdm | 25 |
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 |