hci 428 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/sh
  2. #PKG brcm-bluetooth
  3. #INIT 10
  4. case $1 in
  5. autostop) ;;
  6. autostart)
  7. exec sh $0 start
  8. ;;
  9. start)
  10. target=$(cat /etc/.adktarget)
  11. case $target in
  12. raspberry-pi3 | raspberry-pi3p)
  13. hciattach /dev/ttyAMA0 bcm43xx 921600 noflow -
  14. ;;
  15. *)
  16. echo "No supported target found"
  17. ;;
  18. esac
  19. ;;
  20. stop)
  21. ;;
  22. restart)
  23. sh $0 stop
  24. sh $0 start
  25. ;;
  26. *)
  27. echo "Usage: $0 {start | stop | restart}"
  28. exit 1
  29. ;;
  30. esac
  31. exit $?