diff options
| author | Android (Google) Code Review <android-gerrit@google.com> | 2009-08-26 17:11:32 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-08-26 17:11:32 -0700 |
| commit | bd3f7dedeb0f15bcf5e5b527732b54e45647e78b (patch) | |
| tree | 5f4647c6f9d4c36152d2672f291ed4eb70eb4926 /rootdir | |
| parent | fc279227ec9af8b49d3b3ec63096e4839f099411 (diff) | |
| parent | 21541872c3cdc93e60e18ba496715f8307f990b2 (diff) | |
| download | system_core-bd3f7dedeb0f15bcf5e5b527732b54e45647e78b.zip system_core-bd3f7dedeb0f15bcf5e5b527732b54e45647e78b.tar.gz system_core-bd3f7dedeb0f15bcf5e5b527732b54e45647e78b.tar.bz2 | |
Merge change 22836 into eclair
* changes:
rootdir: init.rc: Copy kernel crash dumps to /data and free kernel resources
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 |
