+ case "$PRODUCT" in
+ T100TAF)
+ set_property bluetooth.interface hci1
+ ;;
+ T10*TA|M80TA|HP*Omni*)
+ BTUART_PORT=/dev/ttyS1
+ set_property hal.bluetooth.uart.proto bcm
+ ;;
+ MacBookPro8*)
+ rmmod b43
+ modprobe b43 btcoex=0
+ modprobe btusb
+ ;;
+ # FIXME
+ # Fix MacBook 2013-2015 (Air6/7&Pro11/12) BCM4360 ssb&wl conflict.
+ MacBookPro11* | MacBookPro12* | MacBookAir6* | MacBookAir7*)
+ rmmod b43
+ rmmod ssb
+ rmmod bcma
+ rmmod wl
+ modprobe wl
+ modprobe btusb
+ ;;
+ *)
+ for bt in $(busybox lsusb -v | awk ' /Class:.E0/ { print $9 } '); do
+ chown 1002.1002 $bt && chmod 660 $bt
+ done
+ ;;
+ esac
+
+ if [ -n "$BTUART_PORT" ]; then
+ set_property hal.bluetooth.uart $BTUART_PORT
+ chown bluetooth.bluetooth $BTUART_PORT
+ start btattach
+ fi
+
+ # rtl8723bs bluetooth
+ if dmesg -t | grep -qE '8723bs.*BT'; then
+ TTYSTRING=`dmesg -t | grep -E 'tty.*MMIO' | awk '{print $2}' | head -1`
+ if [ -n "$TTYSTRING" ]; then
+ echo "RTL8723BS BT uses $TTYSTRING for Bluetooth."
+ ln -sf $TTYSTRING /dev/rtk_h5
+ start rtk_hciattach
+ fi
+ fi