blob: 249d9182f5d29392401850ed8dfb89e289c1953d [file] [log] [blame]
Dima Zavina67dcf22012-02-22 14:52:22 -08001import init.smdk5250.usb.rc
2
Jeff Sharkey233e5882012-08-16 13:52:00 -07003on init
Jeff Sharkey4d8468d2012-08-21 10:38:32 -07004 # See storage config details at http://source.android.com/tech/storage/
Jeff Sharkeydc3015d2012-08-20 13:24:32 -07005 mkdir /mnt/shell/sdcard0 0700 shell shell
Jeff Sharkeyb4dbd0c2012-09-05 16:02:41 -07006 mkdir /storage/sdcard0 0000 root root
Jeff Sharkey233e5882012-08-16 13:52:00 -07007
Jeff Sharkey33793112012-04-09 17:34:07 -07008 export EXTERNAL_STORAGE /storage/sdcard0
Jeff Sharkey26effe62012-09-06 13:18:30 -07009 export ADB_EXTERNAL_STORAGE /mnt/shell/sdcard0/0
Jeff Sharkey4d8468d2012-08-21 10:38:32 -070010 export MULTIUSER_EXTERNAL_STORAGE /mnt/shell/sdcard0
Jeff Sharkeydc3015d2012-08-20 13:24:32 -070011
Jeff Sharkey4d8468d2012-08-21 10:38:32 -070012 # Support legacy paths
Jeff Sharkey33793112012-04-09 17:34:07 -070013 symlink /storage/sdcard0 /sdcard
14 symlink /storage/sdcard0 /mnt/sdcard
Dima Zavina67dcf22012-02-22 14:52:22 -080015
Jeff Sharkey233e5882012-08-16 13:52:00 -070016 # Save bugreports as owner
Jeff Sharkeydc3015d2012-08-20 13:24:32 -070017 export BUGREPORT_WRITE_PATH /mnt/shell/sdcard0/0
Jeff Sharkey233e5882012-08-16 13:52:00 -070018 export BUGREPORT_READ_PATH /storage/sdcard0
19
Dima Zavina67dcf22012-02-22 14:52:22 -080020on post-fs-data
Jeff Sharkey33793112012-04-09 17:34:07 -070021 mkdir /data/media 0770 media_rw media_rw
Jeff Sharkey233e5882012-08-16 13:52:00 -070022
Dima Zavin9702ecd2012-03-02 16:30:21 -080023 setprop vold.post_fs_data_done 1
Dima Zavina67dcf22012-02-22 14:52:22 -080024
25on boot
Dima Zavin9702ecd2012-03-02 16:30:21 -080026 mount debugfs /sys/kernel/debug /sys/kernel/debug
Dima Zavina67dcf22012-02-22 14:52:22 -080027 setprop ro.radio.noril yes
Dima Zavin9702ecd2012-03-02 16:30:21 -080028
Dima Zavinc00fb0f2012-02-23 15:37:50 -080029 # HACK, suspend is broken. remove me when it's fixed
30 write /sys/power/wake_lock taken_from_init_smdk5250_rc
Dima Zavina67dcf22012-02-22 14:52:22 -080031
Dima Zavin9702ecd2012-03-02 16:30:21 -080032 # 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 Zavina67dcf22012-02-22 14:52:22 -080037on fs
Ken Sumrallfa170c72012-04-12 14:40:39 -070038 mount_all /fstab.smdk5250
Dima Zavina67dcf22012-02-22 14:52:22 -080039 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
49service 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 Sharkey233e5882012-08-16 13:52:00 -070057# virtual sdcard daemon running as media_rw (1023)
Jeff Sharkeydc3015d2012-08-20 13:24:32 -070058service sdcard /system/bin/sdcard /data/media /mnt/shell/sdcard0 1023 1023
Dima Zavina67dcf22012-02-22 14:52:22 -080059 class late_start