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>2017-03-01 13:05:18 -0800
commitc5ef434b37e01ddfc1f4474ce118b06f307b8948 (patch)
treeffe0dac51396fee83a2d2eaec7c2c07082797a37 /init.bullhead.rc
parente9e278549bd272e95044c6360fd10332f773ff2e (diff)
downloadbullhead-c5ef434b37e01ddfc1f4474ce118b06f307b8948.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