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 |
Dmitry Shmidt | e87ec97 | 2012-03-16 09:43:07 -0700 | [diff] [blame] | 13 | mkdir /data/misc/wifi 0770 wifi wifi |
| 14 | mkdir /data/misc/wifi/sockets 0770 wifi wifi |
| 15 | mkdir /data/misc/dhcp 0770 dhcp dhcp |
| 16 | chown dhcp dhcp /data/misc/dhcp |
Colin Cross | 29380e6 | 2012-03-06 17:41:22 -0800 | [diff] [blame] | 17 | |
| 18 | on boot |
| 19 | mount debugfs /sys/kernel/debug /sys/kernel/debug |
| 20 | setprop ro.radio.noril yes |
| 21 | |
| 22 | # Set up kernel tracing, but disable it by default |
| 23 | chmod 0222 /sys/kernel/debug/tracing/trace_marker |
| 24 | write /sys/kernel/debug/tracing/tracing_on 0 |
| 25 | |
| 26 | on fs |
| 27 | mount ext4 /dev/block/mmcblk0p9 /system ro wait |
| 28 | mount ext4 /dev/block/mmcblk0p12 /data wait nosuid nodev noatime nomblk_io_submit |
| 29 | mount ext4 /dev/block/mmcblk0p8 /cache wait nosuid nodev noatime nomblk_io_submit |
| 30 | setprop ro.crypto.fuse_sdcard true |
| 31 | |
| 32 | # Permissions for backlight |
| 33 | chmod 0666 /sys/class/backlight/pwm-backlight.0/brightness |
| 34 | chown system system /sys/class/backlight/pwm-backlight.0/brightness |
| 35 | |
| 36 | # create virtual SD card at /mnt/sdcard, based on the /data/media directory |
| 37 | # daemon will drop to user/group system/media_rw after initializing |
| 38 | # underlying files in /data/media will be created with user and group media_rw (1023) |
| 39 | service sdcard /system/bin/sdcard /data/media 1023 1023 |
| 40 | class late_start |
Dmitry Shmidt | e87ec97 | 2012-03-16 09:43:07 -0700 | [diff] [blame] | 41 | |
| 42 | service wpa_supplicant /system/bin/wpa_supplicant \ |
| 43 | -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf -e/data/misc/wifi/entropy.bin |
| 44 | # we will start as root and wpa_supplicant will switch to user wifi |
| 45 | # after setting up the capabilities required for WEXT |
| 46 | # user wifi |
| 47 | # group wifi inet keystore |
| 48 | class main |
| 49 | socket wpa_wlan0 dgram 660 wifi wifi |
| 50 | disabled |
| 51 | oneshot |
| 52 | |
| 53 | service dhcpcd_wlan0 /system/bin/dhcpcd -aABKL |
| 54 | class main |
| 55 | disabled |
| 56 | oneshot |
| 57 | |
| 58 | service iprenew_wlan0 /system/bin/dhcpcd -n |
| 59 | class main |
| 60 | disabled |
| 61 | oneshot |
Colin Cross | 989b65a | 2012-03-18 16:03:42 -0700 | [diff] [blame^] | 62 | |
| 63 | # on userdebug and eng builds, enable kgdb on the serial console |
| 64 | on property:ro.debuggable=1 |
| 65 | write /sys/module/kgdboc/parameters/kgdboc ttyFIQ2 |
| 66 | write /sys/module/fiq_debugger/parameters/kgdb_enable 1 |