am 25f1a5aa: init.rc: Adjust permissions on /data/dontpanic/ so dumpstate will not need root

Merge commit '25f1a5aaffd1ef6e87d53d4fd3c14ea1b6c5b940' into eclair-plus-aosp

* commit '25f1a5aaffd1ef6e87d53d4fd3c14ea1b6c5b940':
  init.rc: Adjust permissions on /data/dontpanic/ so dumpstate will not need root
This commit is contained in:
Mike Lockwood 2009-09-11 14:50:22 -07:00 committed by Android Git Automerger
commit 6088a9ad87
1 changed files with 4 additions and 4 deletions

View File

@ -70,23 +70,23 @@ loglevel 3
# storing dumps on platforms which do not have a dedicated dump partition.
mkdir /data/dontpanic
chown root system /data/dontpanic
chown root log /data/dontpanic
chmod 0750 /data/dontpanic
# Collect apanic data, free resources and re-arm trigger
copy /proc/apanic_console /data/dontpanic/apanic_console
chown root system /data/dontpanic/apanic_console
chown root log /data/dontpanic/apanic_console
chmod 0640 /data/dontpanic/apanic_console
copy /proc/apanic_threads /data/dontpanic/apanic_threads
chown root system /data/dontpanic/apanic_threads
chown root log /data/dontpanic/apanic_threads
chmod 0640 /data/dontpanic/apanic_threads
write /proc/apanic_console 1
# Collect ramconsole data
copy /proc/last_kmsg /data/dontpanic/last_kmsg
chown root system /data/dontpanic/last_kmsg
chown root log /data/dontpanic/last_kmsg
chmod 0640 /data/dontpanic/last_kmsg
# Same reason as /data above