Colin Cross | 29380e6 | 2012-03-06 17:41:22 -0800 | [diff] [blame^] | 1 | import init.smdk5250.usb.rc |
| 2 | |
| 3 | on early-init |
| 4 | export EXTERNAL_STORAGE /mnt/sdcard |
| 5 | mkdir /mnt/sdcard 0000 system system |
| 6 | symlink /mnt/sdcard /sdcard |
| 7 | |
| 8 | on post-fs-data |
| 9 | # we will remap this as /mnt/sdcard with the sdcard fuse tool |
| 10 | mkdir /data/media 0775 media_rw media_rw |
| 11 | chown media_rw media_rw /data/media |
| 12 | setprop vold.post_fs_data_done 1 |
| 13 | |
| 14 | on boot |
| 15 | mount debugfs /sys/kernel/debug /sys/kernel/debug |
| 16 | setprop ro.radio.noril yes |
| 17 | |
| 18 | # Set up kernel tracing, but disable it by default |
| 19 | chmod 0222 /sys/kernel/debug/tracing/trace_marker |
| 20 | write /sys/kernel/debug/tracing/tracing_on 0 |
| 21 | |
| 22 | on fs |
| 23 | mount ext4 /dev/block/mmcblk0p9 /system ro wait |
| 24 | mount ext4 /dev/block/mmcblk0p12 /data wait nosuid nodev noatime nomblk_io_submit |
| 25 | mount ext4 /dev/block/mmcblk0p8 /cache wait nosuid nodev noatime nomblk_io_submit |
| 26 | setprop ro.crypto.fuse_sdcard true |
| 27 | |
| 28 | # Permissions for backlight |
| 29 | chmod 0666 /sys/class/backlight/pwm-backlight.0/brightness |
| 30 | chown system system /sys/class/backlight/pwm-backlight.0/brightness |
| 31 | |
| 32 | # create virtual SD card at /mnt/sdcard, based on the /data/media directory |
| 33 | # daemon will drop to user/group system/media_rw after initializing |
| 34 | # underlying files in /data/media will be created with user and group media_rw (1023) |
| 35 | service sdcard /system/bin/sdcard /data/media 1023 1023 |
| 36 | class late_start |