blob: 59bb89af5fc2fb9d5d786a5b63c2bb61894d6769 (
plain)
1 #!/bin/sh
2 #
3 # bluetooth startup script
4 #
5
6 SSD=/sbin/start-stop-daemon
7 PROG=/usr/sbin/bluetoothd
8 # OPTS="-d"
9
10 case $1 in
11 start)
12 $SSD --start --exec $PROG -- $OPTS
13 ;;
14 stop)
15 $SSD --stop --retry 10 --exec $PROG
16 ;;
17 restart)
18 $0 stop
19 $0 start
20 ;;
21 status)
22 $SSD --status --exec $PROG
23 case $? in
24 0) echo "$PROG is running with pid $(pidof $PROG)" ;;
25 1|3) echo "$PROG is not running" ;;
26 4) echo "Unable to determine the program status" ;;
27 esac
28 ;;
29 *)
30 echo "usage: $0 [start|stop|restart|status]"
31 ;;
32 esac
|