1
# bluetooth-touch-maguro - Bluetooth initialization
3
# Bluetooth initialization job, specifically for the Galaxy Nexus device
4
# (maguro), uses brcm-patchram-plus to patch firmware, set line discipline and
5
# write the bluetooth address for the device.
9
description "Galaxy Nexus bluetooth initialization"
11
stop on stopping bluetooth
15
env PATCHRAM_ARGS="--patchram /system/vendor/firmware/bcm4330.hcd \
20
--baudrate 3000000 --use_baudrate_for_download \
24
chmod 0660 /sys/class/rfkill/rfkill0/state
25
chmod 0660 /sys/class/rfkill/rfkill0/type
26
chgrp dialout /sys/class/rfkill/rfkill0/state
27
chgrp dialout /sys/class/rfkill/rfkill0/type
28
rfkill unblock bluetooth
31
exec /usr/bin/brcm_patchram_plus $PATCHRAM_ARGS --bd_addr `cat /factory/bluetooth/bt_addr` /dev/ttyO1 &