summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChirayu Desai <chirayudesai1@gmail.com>2014-11-30 19:51:48 +0530
committerGerrit Code Review <gerrit@cyanogenmod.org>2014-11-30 14:35:40 +0000
commit28d97b964643bd191faf403eb8fd9f615d432cd9 (patch)
treeb485af22ead3b5984394754397bd573be7b2aeb5
parentf9fec8d1bdb4340fda83540ecb3f004c41bba40e (diff)
init: Use a service for Wi-Fi MAC update
Change-Id: I57c5f0c6d8b243def6490a70cda71d5ad0cd9749
-rw-r--r--rootdir/init.qcom.rc7
1 files changed, 6 insertions, 1 deletions
diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc
index bbc930a..ca153bb 100644
--- a/rootdir/init.qcom.rc
+++ b/rootdir/init.qcom.rc
@@ -294,7 +294,6 @@ on post-fs-data
# Update WIFI MAC address
mkdir /data/misc/wifi/prima 0775 wifi wifi
- exec /system/bin/mac-update
mkdir /data/credmgr 0700 system system
mkdir /data/tombstones 0755 system system
@@ -403,6 +402,12 @@ on charger
on property:init.svc.wpa_supplicant=stopped
stop dhcpcd
+# Update Wi-Fi MAC address
+service mac-update /system/bin/mac-update
+ class late_start
+ user wifi
+ oneshot
+
# QMUX must be in multiple groups to support external process connections
service qmuxd /system/bin/qmuxd
class main