| import init.smdk5250.usb.rc |
| |
| on early-init |
| export EXTERNAL_STORAGE /storage/sdcard0 |
| mkdir /storage 0050 system sdcard_r |
| mkdir /storage/sdcard0 0000 system system |
| symlink /storage/sdcard0 /sdcard |
| symlink /storage/sdcard0 /mnt/sdcard |
| |
| on post-fs-data |
| # we will remap this as /storage/sdcard with the sdcard fuse tool |
| mkdir /data/media 0770 media_rw media_rw |
| chown media_rw media_rw /data/media |
| setprop vold.post_fs_data_done 1 |
| |
| on boot |
| mount debugfs /sys/kernel/debug /sys/kernel/debug |
| setprop ro.radio.noril yes |
| |
| # HACK, suspend is broken. remove me when it's fixed |
| write /sys/power/wake_lock taken_from_init_smdk5250_rc |
| |
| # Set up kernel tracing, but disable it by default |
| chmod 0222 /sys/kernel/debug/tracing/trace_marker |
| write /sys/kernel/debug/tracing/tracing_on 0 |
| |
| |
| on fs |
| mount_all /fstab.smdk5250 |
| setprop ro.crypto.fuse_sdcard true |
| |
| # Permissions for backlight |
| chmod 0666 /sys/class/backlight/pwm-backlight.0/brightness |
| chown system system /sys/class/backlight/pwm-backlight.0/brightness |
| |
| # Permissions for Gscaler log level |
| chmod 0666 /sys/module/gsc/parameters/gsc_dbg |
| |
| # create filesystem if necessary |
| service setup_fs /system/bin/setup_fs \ |
| /dev/block/mmcblk0p3 \ |
| /dev/block/mmcblk0p4 |
| class core |
| user root |
| group root |
| oneshot |
| |
| # create virtual SD card at /storage/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 |