system/corennnnn
修訂 | 21541872c3cdc93e60e18ba496715f8307f990b2 (tree) |
---|---|
時間 | 2009-08-27 08:39:59 |
作者 | San Mehat <san@goog...> |
Commiter | San Mehat |
rootdir: init.rc: Copy kernel crash dumps to /data and free kernel resources
Signed-off-by: San Mehat <san@google.com>
@@ -91,6 +91,17 @@ loglevel 3 | ||
91 | 91 | mkdir /data/app 0771 system system |
92 | 92 | mkdir /data/property 0700 root root |
93 | 93 | |
94 | + # Collect kernel crash-dump info | |
95 | + copy /proc/last_console /data/last_console | |
96 | + chown root system /data/last_console | |
97 | + copy /proc/last_threads /data/last_threads | |
98 | + chown root system /data/last_threads | |
99 | + copy /proc/last_kmsg /data/last_kmsg | |
100 | + chown root system /data/last_kmsg | |
101 | + | |
102 | + # Free crash resources and re-arm | |
103 | + write /proc/last_kmsg 1 | |
104 | + | |
94 | 105 | # create dalvik-cache and double-check the perms |
95 | 106 | mkdir /data/dalvik-cache 0771 system system |
96 | 107 | chown system system /data/dalvik-cache |