init.shamu.rc: Obey persist.sys.qc.sub.rdump.on
Obey persist.sys.qc.sub.rdump.on. If it's zero, disable ramdumps.
Bug: 17595982
Change-Id: Ia503628ec6117338a1e2a2768113140351dbc0b6
diff --git a/init.shamu.rc b/init.shamu.rc
index a730800..9b6c01d 100644
--- a/init.shamu.rc
+++ b/init.shamu.rc
@@ -240,7 +240,8 @@
mkdir /data/adspd/1 0770 media media
# subsystem ramdump collection
- write /sys/module/subsystem_restart/parameters/enable_ramdumps 1
+on property:persist.sys.qc.sub.rdump.on=*
+ write /sys/module/subsystem_restart/parameters/enable_ramdumps ${persist.sys.qc.sub.rdump.on}
# msm specific files that need to be created on /data
on post-fs-data