summaryrefslogtreecommitdiff
path: root/package/brcm-bluetooth/files/hci
blob: 69716e14727d99bab384be76080036e32c5d56ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
#PKG brcm-bluetooth
#INIT 10

case $1 in
autostop) ;;
autostart)
	exec sh $0 start
	;;
start)
	target=$(cat /etc/.adktarget)
	case $target in
	  raspberry-pi3 | raspberry-pi3p)
	    hciattach /dev/ttyAMA0 bcm43xx 921600 noflow -
	    ;;
	  *)
	    echo "No supported target found"
	    ;;
	esac
	;;
stop)
	;;
restart)
	sh $0 stop
	sh $0 start
	;;
*)
	echo "Usage: $0 {start | stop | restart}"
	exit 1
	;;
esac
exit $?