mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-02 13:04:42 +01:00
c21c4098e6
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
24 lines
436 B
Bash
24 lines
436 B
Bash
#!/bin/sh
|
|
#
|
|
# /etc/rc.d/rc.bluez-alsa
|
|
#
|
|
|
|
case "$1" in
|
|
'start')
|
|
nohup /usr/bin/bluealsa > /dev/null 2>&1 &
|
|
echo $! > /var/run/bluealsa.pid
|
|
;;
|
|
'stop')
|
|
kill $(cat /var/run/bluealsa.pid)
|
|
rm -f /var/run/bluealsa.pid
|
|
;;
|
|
'restart')
|
|
kill $(cat /var/run/bluealsa.pid)
|
|
nohup /usr/bin/bluealsa > /dev/null 2>&1 &
|
|
echo $! > /var/run/bluealsa.pid
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart}"
|
|
;;
|
|
esac
|
|
|