/etc/init/bluetooth-touch-grouper.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-grouper - Bluetooth initialization
#
# Bluetooth initialization job, specifically for the Nexus 7 device (grouper),
# uses brcm-patchram-plus to patch firmware, set line discipline and write
# the bluetooth address for the device.
#
description "Nexus 7 bluetooth initialization"
stop on stopping bluetooth
expect fork
env PATCHRAM_ARGS="--patchram /system/etc/firmware/bcm4330.hcd
--no2bytes \
--scopcm=0,2,0,0,0,0,0,0,0,0 \
--enable_hci \
--enable_lpm \
--baudrate 3000000 --use_baudrate_for_download \
--tosleep=50000 \
/dev/ttyHS2"
exec /usr/bin/brcm_patchram_plus $PATCHRAM_ARGS &
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
|