/etc/init/bluetooth-touch-flo.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-flo - Bluetooth initialization
#
# Bluetooth initialization job, specifically for the Nexus 7 2013 device (flo),
# starts the hciattach job in the android container to run hci_qcomm_init,
# which will write the bluetooth address and bring up the chip.
#
description "Nexus 7 (flo) bluetooth initialization"
task
pre-start script
timeout=10
# loop 10 times and then exit, if the property service
# isnt up after 80 sec # it is likely not starting at all
while [ ! -e /dev/socket/property_service ]; do
sleep 8
if [ "$timeout" -le 0 ]; then
stop
exit 0
fi
timeout=$(($timeout - 1))
done
end script
script
setprop ctl.start hciattach
sleep 5
setprop bluetooth.hciattach true
echo 1 > /sys/module/hci_smd/parameters/hcismd_set
end script
|