1import init.omap4pandaboard.usb.rc 2 3on init 4 # See storage config details at http://source.android.com/tech/storage/ 5 mkdir /mnt/shell/emulated 0700 shell shell 6 mkdir /storage/emulated 0555 root root 7 8 export EXTERNAL_STORAGE /storage/emulated/legacy 9 export EMULATED_STORAGE_SOURCE /mnt/shell/emulated 10 export EMULATED_STORAGE_TARGET /storage/emulated 11 12 # Support legacy paths 13 symlink /storage/emulated/legacy /sdcard 14 symlink /storage/emulated/legacy /mnt/sdcard 15 symlink /storage/emulated/legacy /storage/sdcard0 16 symlink /mnt/shell/emulated/0 /storage/emulated/legacy 17 18on post-fs-data 19 mkdir /data/media 0770 media_rw media_rw 20 21 setprop vold.post_fs_data_done 1 22 mkdir /data/misc/dhcp 0770 dhcp dhcp 23 chown dhcp dhcp /data/misc/dhcp 24 mkdir /data/misc/wifi/sockets 0770 wifi wifi 25 26on boot 27 mount debugfs /sys/kernel/debug /sys/kernel/debug 28 chmod 0666 /dev/pvrsrvkm 29 30on fs 31 mount_all /fstab.omap4pandaboard 32 33# change permissions for Bluetooth/FM/GPS 34 chmod 0600 /sys/class/rfkill/rfkill0/state 35 chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state 36 chmod 0600 /dev/ttyO1 37 chown bluetooth bluetooth /dev/ttyO1 38 39 40# take a wakelock on boot until PM is working 41 write /sys/power/wake_lock hack 42 43# bugreport is triggered by holding down the user button and left mouse button 44service bugreport /system/bin/bugmailer.sh -v 45 class main 46 disabled 47 oneshot 48 keycodes 102 272 49 50 51service pvrsrvinit /vendor/bin/pvrsrvinit 52 class core 53 user root 54 group root 55 oneshot 56 57# create filesystems if necessary 58service setup_fs /system/bin/setup_fs \ 59 /dev/block/platform/omap/omap_hsmmc.0/by-name/cache \ 60 /dev/block/platform/omap/omap_hsmmc.0/by-name/userdata 61 class core 62 user root 63 group root 64 oneshot 65 66#shared transport user space mgr service for Bluetooth, FM and GPS 67service uim /system/bin/uim-sysfs 68 class core 69 user bluetooth 70 group bluetooth net_bt_admin 71 72# virtual sdcard daemon running as media_rw (1023) 73service sdcard /system/bin/sdcard /data/media /mnt/shell/sdcard0 1023 1023 74 class late_start 75 76service wpa_supplicant /system/bin/wpa_supplicant -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf -dd 77 socket wpa_wlan0 dgram 660 wifi wifi 78 disabled 79 oneshot 80 81service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL 82 disabled 83 oneshot 84 85service iprenew_wlan0 /system/bin/dhcpcd -n 86 disabled 87 oneshot 88 89service dhcpcd_eth0 /system/bin/dhcpcd -ABKL 90 disabled 91 oneshot 92 93service iprenew_eth0 /system/bin/dhcpcd -n 94 disabled 95 oneshot 96