~ubuntu-branches/ubuntu/utopic/bluetooth-touch/utopic

« back to all changes in this revision

Viewing changes to debian/bluetooth-touch-maguro.conf

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2013-08-13 16:42:48 UTC
  • Revision ID: package-import@ubuntu.com-20130813164248-hm25riyr2x1hq9xy
Tags: 0.2.0
* Rename Source and Binary to bluetooth-touch to be more generic.
* Add/revise upstart jobs for maguro, mako and grouper.
* debian/source/format: we're using source format 3.0 (native).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# bluetooth-touch-maguro - Bluetooth initialization
 
2
#
 
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.
 
6
#
 
7
 
 
8
 
 
9
description     "Galaxy Nexus bluetooth initialization"
 
10
 
 
11
stop on stopping bluetooth
 
12
 
 
13
expect fork
 
14
 
 
15
env PATCHRAM_ARGS="--patchram /system/vendor/firmware/bcm4330.hcd \
 
16
                --no2bytes \
 
17
                --i2s=1,1,0,1 \
 
18
                --enable_hci \
 
19
                --enable_lpm \
 
20
                --baudrate 3000000 --use_baudrate_for_download \
 
21
                --tosleep=50000"
 
22
 
 
23
pre-start script
 
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
 
29
end script
 
30
 
 
31
exec /usr/bin/brcm_patchram_plus $PATCHRAM_ARGS --bd_addr `cat /factory/bluetooth/bt_addr` /dev/ttyO1 &