diff options
author | Simon Wilson <simonwilson@google.com> | 2011-05-18 18:39:24 -0700 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2011-05-18 19:22:01 -0700 |
commit | dfcdac4d5f7ff3334e744bee1563b9dc9cd2f15a (patch) | |
tree | ccc8e05f67485b7b925288d721b097649da708bb /init.tuna.rc | |
parent | 9b4e216ebc0e39c36ce37aa0f185d3bd18172999 (diff) | |
download | device_samsung_tuna-dfcdac4d5f7ff3334e744bee1563b9dc9cd2f15a.zip device_samsung_tuna-dfcdac4d5f7ff3334e744bee1563b9dc9cd2f15a.tar.gz device_samsung_tuna-dfcdac4d5f7ff3334e744bee1563b9dc9cd2f15a.tar.bz2 |
Create virtual SD card
Create virtual SD card at /mnt/sdcard, based on the
/data/media directory
Change-Id: I5e92553bdf5781a1ad6b0775574c88da3a61a88d
Diffstat (limited to 'init.tuna.rc')
-rw-r--r-- | init.tuna.rc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/init.tuna.rc b/init.tuna.rc index 3d30f6e..7534180 100644 --- a/init.tuna.rc +++ b/init.tuna.rc @@ -1,3 +1,14 @@ +on early-init + export EXTERNAL_STORAGE /mnt/sdcard + mkdir /mnt/sdcard 0000 system system + # for backwards compatibility + symlink /mnt/sdcard /sdcard + +on post-fs-data + # we will remap this as /mnt/sdcard with the sdcard fuse tool + mkdir /data/media 0775 media_rw media_rw + chown media_rw media_rw /data/media + on boot mount debugfs /sys/kernel/debug /sys/kernel/debug chmod 0666 /dev/pvrsrvkm @@ -15,3 +26,9 @@ service pvrsrvinit /vendor/bin/pvrsrvinit user root group root oneshot + +# create virtual SD card at /mnt/sdcard, based on the /data/media directory +# daemon will drop to user/group system/media_rw after initializing +# underlying files in /data/media will be created with user and group media_rw (1023) +service sdcard /system/bin/sdcard /data/media 1023 1023 + class late_start |