1
# bluetooth-touch-grouper - Bluetooth initialization
3
# Bluetooth initialization job, specifically for the Nexus 7 device (grouper),
4
# uses brcm-patchram-plus to patch firmware, set line discipline and write
5
# the bluetooth address for the device.
8
description "Nexus 7 bluetooth initialization"
10
stop on stopping bluetooth
14
env PATCHRAM_ARGS="--patchram /system/etc/firmware/bcm4330.hcd
16
--scopcm=0,2,0,0,0,0,0,0,0,0 \
19
--baudrate 3000000 --use_baudrate_for_download \
23
exec /usr/bin/brcm_patchram_plus $PATCHRAM_ARGS &
26
chmod 0660 /sys/class/rfkill/rfkill0/state
27
chmod 0660 /sys/class/rfkill/rfkill0/type
28
chgrp dialout /sys/class/rfkill/rfkill0/state
29
chgrp dialout /sys/class/rfkill/rfkill0/type
30
rfkill unblock bluetooth