diff options
author | San Mehat <san@google.com> | 2009-08-26 16:38:51 -0700 |
---|---|---|
committer | San Mehat <san@google.com> | 2009-08-26 16:39:59 -0700 |
commit | 21541872c3cdc93e60e18ba496715f8307f990b2 (patch) | |
tree | 45518c196b69bb7070988bc601afb0d20798272b /rootdir | |
parent | 7c44fe5925b6dd51166f73d30de0a2f22d66373e (diff) | |
download | system_core-21541872c3cdc93e60e18ba496715f8307f990b2.zip system_core-21541872c3cdc93e60e18ba496715f8307f990b2.tar.gz system_core-21541872c3cdc93e60e18ba496715f8307f990b2.tar.bz2 |
rootdir: init.rc: Copy kernel crash dumps to /data and free kernel resources
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.rc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 815a260..297afa1 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -91,6 +91,17 @@ loglevel 3 mkdir /data/app 0771 system system mkdir /data/property 0700 root root + # Collect kernel crash-dump info + copy /proc/last_console /data/last_console + chown root system /data/last_console + copy /proc/last_threads /data/last_threads + chown root system /data/last_threads + copy /proc/last_kmsg /data/last_kmsg + chown root system /data/last_kmsg + + # Free crash resources and re-arm + write /proc/last_kmsg 1 + # create dalvik-cache and double-check the perms mkdir /data/dalvik-cache 0771 system system chown system system /data/dalvik-cache |