summaryrefslogtreecommitdiff
path: root/init.bullhead.rc
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2016-12-08 18:40:24 -0800
committerRoshan Pius <rpius@google.com>2016-12-12 09:51:53 -0800
commitad415bae42bff181001c8aa9cfd4057476bfdcd3 (patch)
treeef7c84d96bdcd5acb8f3d3523e406563d907ce4c /init.bullhead.rc
parent31dd9e44fc6b1930f29455fe862af9b6710d7313 (diff)
downloadbullhead-ad415bae42bff181001c8aa9cfd4057476bfdcd3.tar.gz
bullhead: Change ownership of wifi firmware reload sysfs paths
This will let the wifi hal run as "wifi" user and not need root permissions to access this path for firmware reloads. Bug: 33435250 Test: Compiles. Change-Id: I3d4dec476363f16fc8af08fbf52ec8041d72c527
Diffstat (limited to 'init.bullhead.rc')
-rw-r--r--init.bullhead.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.bullhead.rc b/init.bullhead.rc
index 2250ed1..729e64e 100644
--- a/init.bullhead.rc
+++ b/init.bullhead.rc
@@ -172,6 +172,9 @@ on boot
write /sys/block/mmcblk0/queue/rq_affinity 0
write /sys/block/mmcblk0/queue/scheduler noop
+ # Wifi firmware reload path
+ chown wifi wifi /sys/module/wlan/parameters/fwpath
+
on post-fs
symlink /dev/block/platform/soc.0/f9824900.sdhci /dev/block/bootdevice