Merge "init.qcom.rc: Add support for enabling ramdump collection on boot."

This commit is contained in:
Linux Build Service Account 2014-08-30 22:37:56 -07:00 committed by Gerrit - the friendly Code Review server
commit 7088647519
1 changed files with 13 additions and 0 deletions

View File

@ -275,9 +275,22 @@ service ssr_setup /system/bin/ssr_setup
oneshot
disabled
service ss_ramdump /system/bin/subsystem_ramdump
class main
user system
group system
disabled
on property:persist.sys.ssr.restart_level=*
start ssr_setup
on property:persist.sys.ssr.enable_ramdumps=1
write /sys/module/subsystem_restart/parameters/enable_ramdumps 1
start ss_ramdump
on property:persist.sys.ssr.enable_ramdumps=0
write /sys/module/subsystem_restart/parameters/enable_ramdumps 0
on property:sys.boot_completed=1
write /dev/kmsg "Boot completed "