2000-07-05 14:37:06 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2003-01-30 18:30:49 +01:00
|
|
|
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/${0##*/}\$"); then
|
2000-07-05 14:37:06 +02:00
|
|
|
echo "$0: Cannot determine the PREFIX" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
2003-01-30 18:30:49 +01:00
|
|
|
[ -x ${PREFIX}/sbin/rplayd ] && ${PREFIX}/sbin/rplayd && echo -n ' rplayd'
|
2000-07-05 14:37:06 +02:00
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
killall rplayd && echo -n ' rplayd'
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Usage: `basename $0` {start|stop}" >&2
|
2003-01-30 18:30:49 +01:00
|
|
|
exit 64
|
2000-07-05 14:37:06 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit 0
|