mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-25 14:33:29 +08:00
72a6bd4b5d
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>
26 lines
338 B
Bash
26 lines
338 B
Bash
#!/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
|