summaryrefslogtreecommitdiffstats
path: root/init.tuna.rc
diff options
context:
space:
mode:
authorJaikumar Ganesh <jaikumar@google.com>2011-06-24 09:27:28 -0700
committerJaikumar Ganesh <jaikumar@google.com>2011-06-24 18:19:03 -0700
commiteb54ed9f8051348d9eb18530a5c979ab1c397005 (patch)
tree2ca0ef5ee218fd5a41e0f38fd7b37c289fe41627 /init.tuna.rc
parentb4aa1d1f62e25c6ef01516cca8e45aeba9cb1f6e (diff)
downloaddevice_samsung_tuna-eb54ed9f8051348d9eb18530a5c979ab1c397005.zip
device_samsung_tuna-eb54ed9f8051348d9eb18530a5c979ab1c397005.tar.gz
device_samsung_tuna-eb54ed9f8051348d9eb18530a5c979ab1c397005.tar.bz2
Add BT permissions and services.
1. Change permissions for the rfkill driver and uart 2. Start the hciattach service. Change-Id: I5a49d79b600b32649f73f8d7411095dcff8828dd
Diffstat (limited to 'init.tuna.rc')
-rw-r--r--init.tuna.rc16
1 files changed, 16 insertions, 0 deletions
diff --git a/init.tuna.rc b/init.tuna.rc
index e017ed8..c5168de 100644
--- a/init.tuna.rc
+++ b/init.tuna.rc
@@ -44,6 +44,22 @@ on fs
chmod 0600 /sys/devices/platform/nfc-power/nfc_power
chown nfc nfc /sys/devices/platform/nfc-power/nfc_power
+# permissions for bluetooth.
+ chown bluetooth bluetooth /dev/ttyO1
+ chmod 0600 /dev/ttyO1
+ chmod 0660 /sys/class/rfkill/rfkill0/state
+ chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
+ chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
+
+service hciattach /system/bin/brcm_patchram_plus --enable_hci --no2bytes \
+ --tosleep 50000 --baudrate 3000000 --use_baudrate_for_download \
+ --patchram /vendor/firmware/bcm4330.hcd /dev/ttyO1
+ class main
+ user bluetooth
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
service pvrsrvinit /vendor/bin/pvrsrvinit
class core
user root