Skip to content

Commit

Permalink
Update root/init.omap4430.rc
Browse files Browse the repository at this point in the history
Ensure /data/media exists on boot and start sdcard service.

Should probably remove sdcard service from class core in the future.
  • Loading branch information
uejji committed Nov 12, 2012
1 parent 2df6a60 commit b7e2858
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions root/init.omap4430.rc
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ on post-fs-data

setprop vold.post_fs_data_done 1

# we will remap this as /storage/sdcard0 with the sdcard fuse tool
mkdir /data/media 0770 media_rw media_rw
chown media_rw media_rw /data/media

on boot
mount debugfs /sys/kernel/debug /sys/kernel/debug
setprop ro.radio.noril yes
Expand Down Expand Up @@ -200,6 +204,12 @@ on boot
setprop status.battery.level_raw 50
setprop status.battery.level_scale 9

# create virtual SD card at /storage/sdcard0, based on the /data/media directory
# deamon will drop to user/group system/media_rw after initializing
# underlying files in /data/media wil be created with user and group media_rw (1023)
service sdcard /system/bin/sdcard /data/media 1023 1023
class core

service fixmac /system/bin/fix-mac.sh
class core
user root
Expand Down

0 comments on commit b7e2858

Please sign in to comment.