summaryrefslogtreecommitdiff
path: root/peripheral/bluetooth/bcm43340/bt_bcm43340.rc
blob: bdc1f42be5ca2ff18fd0880b1bba151869b324d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
########################################################
#  BLUETOOTH CONFIGURATION - BROADCOM SPECIFIC
########################################################

on fs
    mkdir /config/bt 0770 system bluetooth
    setprop ro.bt.bdaddr_path /config/bt/bd_addr.conf

on early-boot
    chmod 0644 /config/bt/bd_addr.conf

on post-fs-data
    # Bluetooth
    write /sys/class/rfkill/rfkill0/state 1
    chmod 0660 /sys/class/rfkill/rfkill0/state
    chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
    chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type