Dima Zavin | a67dcf2 | 2012-02-22 14:52:22 -0800 | [diff] [blame] | 1 | import init.smdk5250.usb.rc |
| 2 | |
Jeff Sharkey | 233e588 | 2012-08-16 13:52:00 -0700 | [diff] [blame] | 3 | on init |
Jeff Sharkey | 4d8468d | 2012-08-21 10:38:32 -0700 | [diff] [blame] | 4 | # See storage config details at http://source.android.com/tech/storage/ |
Jeff Sharkey | dc3015d | 2012-08-20 13:24:32 -0700 | [diff] [blame] | 5 | mkdir /mnt/shell/sdcard0 0700 shell shell |
Jeff Sharkey | b4dbd0c | 2012-09-05 16:02:41 -0700 | [diff] [blame] | 6 | mkdir /storage/sdcard0 0000 root root |
Jeff Sharkey | 233e588 | 2012-08-16 13:52:00 -0700 | [diff] [blame] | 7 | |
Jeff Sharkey | 3379311 | 2012-04-09 17:34:07 -0700 | [diff] [blame] | 8 | export EXTERNAL_STORAGE /storage/sdcard0 |
Jeff Sharkey | 26effe6 | 2012-09-06 13:18:30 -0700 | [diff] [blame] | 9 | export ADB_EXTERNAL_STORAGE /mnt/shell/sdcard0/0 |
Jeff Sharkey | 4d8468d | 2012-08-21 10:38:32 -0700 | [diff] [blame] | 10 | export MULTIUSER_EXTERNAL_STORAGE /mnt/shell/sdcard0 |
Jeff Sharkey | dc3015d | 2012-08-20 13:24:32 -0700 | [diff] [blame] | 11 | |
Jeff Sharkey | 4d8468d | 2012-08-21 10:38:32 -0700 | [diff] [blame] | 12 | # Support legacy paths |
Jeff Sharkey | 3379311 | 2012-04-09 17:34:07 -0700 | [diff] [blame] | 13 | symlink /storage/sdcard0 /sdcard |
| 14 | symlink /storage/sdcard0 /mnt/sdcard |
Dima Zavin | a67dcf2 | 2012-02-22 14:52:22 -0800 | [diff] [blame] | 15 | |
Jeff Sharkey | 233e588 | 2012-08-16 13:52:00 -0700 | [diff] [blame] | 16 | # Save bugreports as owner |
Jeff Sharkey | dc3015d | 2012-08-20 13:24:32 -0700 | [diff] [blame] | 17 | export BUGREPORT_WRITE_PATH /mnt/shell/sdcard0/0 |
Jeff Sharkey | 233e588 | 2012-08-16 13:52:00 -0700 | [diff] [blame] | 18 | export BUGREPORT_READ_PATH /storage/sdcard0 |
| 19 | |
Dima Zavin | a67dcf2 | 2012-02-22 14:52:22 -0800 | [diff] [blame] | 20 | on post-fs-data |
Jeff Sharkey | 3379311 | 2012-04-09 17:34:07 -0700 | [diff] [blame] | 21 | mkdir /data/media 0770 media_rw media_rw |
Jeff Sharkey | 233e588 | 2012-08-16 13:52:00 -0700 | [diff] [blame] | 22 | |
Dima Zavin | 9702ecd | 2012-03-02 16:30:21 -0800 | [diff] [blame] | 23 | setprop vold.post_fs_data_done 1 |
Dima Zavin | a67dcf2 | 2012-02-22 14:52:22 -0800 | [diff] [blame] | 24 | |
| 25 | on boot |
Dima Zavin | 9702ecd | 2012-03-02 16:30:21 -0800 | [diff] [blame] | 26 | mount debugfs /sys/kernel/debug /sys/kernel/debug |
Dima Zavin | a67dcf2 | 2012-02-22 14:52:22 -0800 | [diff] [blame] | 27 | setprop ro.radio.noril yes |
Dima Zavin | 9702ecd | 2012-03-02 16:30:21 -0800 | [diff] [blame] | 28 | |
Dima Zavin | c00fb0f | 2012-02-23 15:37:50 -0800 | [diff] [blame] | 29 | # HACK, suspend is broken. remove me when it's fixed |
| 30 | write /sys/power/wake_lock taken_from_init_smdk5250_rc |
Dima Zavin | a67dcf2 | 2012-02-22 14:52:22 -0800 | [diff] [blame] | 31 | |
Dima Zavin | 9702ecd | 2012-03-02 16:30:21 -0800 | [diff] [blame] | 32 | # Set up kernel tracing, but disable it by default |
| 33 | chmod 0222 /sys/kernel/debug/tracing/trace_marker |
| 34 | write /sys/kernel/debug/tracing/tracing_on 0 |
| 35 | |
| 36 | |
Dima Zavin | a67dcf2 | 2012-02-22 14:52:22 -0800 | [diff] [blame] | 37 | on fs |
Ken Sumrall | fa170c7 | 2012-04-12 14:40:39 -0700 | [diff] [blame] | 38 | mount_all /fstab.smdk5250 |
Dima Zavin | a67dcf2 | 2012-02-22 14:52:22 -0800 | [diff] [blame] | 39 | setprop ro.crypto.fuse_sdcard true |
| 40 | |
| 41 | # Permissions for backlight |
| 42 | chmod 0666 /sys/class/backlight/pwm-backlight.0/brightness |
| 43 | chown system system /sys/class/backlight/pwm-backlight.0/brightness |
| 44 | |
| 45 | # Permissions for Gscaler log level |
| 46 | chmod 0666 /sys/module/gsc/parameters/gsc_dbg |
| 47 | |
| 48 | # create filesystem if necessary |
| 49 | service setup_fs /system/bin/setup_fs \ |
| 50 | /dev/block/mmcblk0p3 \ |
| 51 | /dev/block/mmcblk0p4 |
| 52 | class core |
| 53 | user root |
| 54 | group root |
| 55 | oneshot |
| 56 | |
Jeff Sharkey | 233e588 | 2012-08-16 13:52:00 -0700 | [diff] [blame] | 57 | # virtual sdcard daemon running as media_rw (1023) |
Jeff Sharkey | dc3015d | 2012-08-20 13:24:32 -0700 | [diff] [blame] | 58 | service sdcard /system/bin/sdcard /data/media /mnt/shell/sdcard0 1023 1023 |
Dima Zavin | a67dcf2 | 2012-02-22 14:52:22 -0800 | [diff] [blame] | 59 | class late_start |