diff options
| author | Won-Kyu Park <wkpark@gmail.com> | 2012-01-22 17:56:40 +0900 |
|---|---|---|
| committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2012-07-10 22:59:44 +0100 |
| commit | d3a29d15fe834b02105c382af9cccaccbe38b314 (patch) | |
| tree | 746ed2d3360023aeb247a7df9a10899e2b3dcd67 /rootdir | |
| parent | 9d1a567eb0d6ac8d0040228e7c41668c8e3eb37e (diff) | |
| download | system_core-d3a29d15fe834b02105c382af9cccaccbe38b314.tar.gz system_core-d3a29d15fe834b02105c382af9cccaccbe38b314.tar.bz2 system_core-d3a29d15fe834b02105c382af9cccaccbe38b314.zip | |
Create /cache/dalvik-cache
manually imported commit ba422208f99552f12f34e6f28cc44445f0e6d9e0 by ctso
Change-Id: I617573a14a8cf08d353804016b3351186720d199
Diffstat (limited to 'rootdir')
| -rw-r--r-- | rootdir/init.rc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index c1ac6c6b..496d4cc8 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -27,6 +27,7 @@ loglevel 3 export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin export LD_LIBRARY_PATH /vendor/lib:/system/lib export ANDROID_BOOTLOGO 1 + export ANDROID_CACHE /cache export ANDROID_ROOT /system export ANDROID_ASSETS /system/app export ANDROID_DATA /data @@ -49,7 +50,7 @@ loglevel 3 mkdir /system mkdir /data 0771 system system - mkdir /cache 0770 system cache + mkdir /cache 0771 system cache mkdir /config 0500 root root # Directory for putting things only root should see. @@ -127,7 +128,7 @@ on post-fs # We chown/chmod /cache again so because mount is run as root + defaults chown system cache /cache - chmod 0770 /cache + chmod 0771 /cache # This may have been created by the recovery system with odd permissions chown system cache /cache/recovery @@ -191,8 +192,14 @@ on post-fs-data mkdir /data/ssh 0750 root shell mkdir /data/ssh/empty 0700 root root - # create dalvik-cache, so as to enforce our permissions + # create dalvik-cache and double-check the perms, so as to enforce our permissions mkdir /data/dalvik-cache 0771 system system + chown system system /data/dalvik-cache + chmod 0771 /data/dalvik-cache + + mkdir /cache/dalvik-cache 0771 system system + chown system system /cache/dalvik-cache + chmod 0771 /cache/dalvik-cache # create resource-cache and double-check the perms mkdir /data/resource-cache 0771 system system |
