/etc/init/bluetooth-touch-maguro.conf is in bluetooth-touch 0.2.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | # bluetooth-touch-maguro - Bluetooth initialization
#
# Bluetooth initialization job, specifically for the Galaxy Nexus device
# (maguro), uses brcm-patchram-plus to patch firmware, set line discipline and
# write the bluetooth address for the device.
#
description "Galaxy Nexus bluetooth initialization"
stop on stopping bluetooth
expect fork
env PATCHRAM_ARGS="--patchram /system/vendor/firmware/bcm4330.hcd \
--no2bytes \
--i2s=1,1,0,1 \
--enable_hci \
--enable_lpm \
--baudrate 3000000 --use_baudrate_for_download \
--tosleep=50000"
pre-start script
chmod 0660 /sys/class/rfkill/rfkill0/state
chmod 0660 /sys/class/rfkill/rfkill0/type
chgrp dialout /sys/class/rfkill/rfkill0/state
chgrp dialout /sys/class/rfkill/rfkill0/type
rfkill unblock bluetooth
end script
exec /usr/bin/brcm_patchram_plus $PATCHRAM_ARGS --bd_addr `cat /factory/bluetooth/bt_addr` /dev/ttyO1 &
|