summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorWei Wang <wvw@google.com>2017-01-27 11:44:57 -0800
committerWei Wang <wvw@google.com>2017-01-27 23:20:59 +0000
commitef75dd759a44224c55d2a15878474c84f257f807 (patch)
tree411f60ead8acd953a3801c7cdeded643f00e2ccc /service
parent8c6d09c03532b3936fab2fed6f8b84c895333565 (diff)
wifi-events.rc: initilize on boot_completed
Boot up time improved ~300ms on device Bug: 34740663 Test: on marlin Change-Id: Ic12e73d601ed6a7460e49e1ed27a75bb289f9157
Diffstat (limited to 'service')
-rw-r--r--service/wifi-events.rc6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/wifi-events.rc b/service/wifi-events.rc
index ff5c3b7fe..bf2d75ebc 100644
--- a/service/wifi-events.rc
+++ b/service/wifi-events.rc
@@ -14,7 +14,7 @@
# limitations under the License.
#
-on post-fs
+on property:sys.boot_completed=1
# Create trace buffer, and set basic configuration.
mkdir /sys/kernel/debug/tracing/instances/wifi 711
restorecon_recursive /sys/kernel/debug/tracing/instances/wifi
@@ -55,6 +55,6 @@ on post-fs
chmod 400 /sys/kernel/debug/tracing/instances/wifi/free_buffer
chmod 600 /sys/kernel/debug/tracing/instances/wifi/trace
-on property:wifi.interface=*
+on property:sys.boot_completed=1 && property:wifi.interface=*
# Override default value.
- write /sys/kernel/debug/tracing/instances/wifi/events/net/filter name==${wifi.interface} \ No newline at end of file
+ write /sys/kernel/debug/tracing/instances/wifi/events/net/filter name==${wifi.interface}