init: 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: I84a38cea5e0f729147c3191c3485a3738d7838ef
This commit is contained in:
Roshan Pius
2016-12-08 18:41:47 -08:00
committed by Vachounet
parent db94d6f01a
commit 2a23bd57ee

View File

@@ -35,6 +35,9 @@ on early-init
symlink /data/tombstones /tombstones
mkdir /dsp 0771 media media
# Wifi firmware reload path
chown wifi wifi /sys/module/wlan/parameters/fwpath
on fs
wait /dev/block/platform/soc/${ro.boot.bootdevice}
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice