Home | History | Annotate | Download | only in panda
      1 import init.omap4pandaboard.usb.rc
      2 
      3 on early-init
      4     export EXTERNAL_STORAGE /mnt/sdcard
      5     mkdir /mnt/sdcard 0000 system system
      6     # for backwards compatibility
      7     symlink /mnt/sdcard /sdcard
      8 
      9 on post-fs-data
     10     # we will remap this as /mnt/sdcard with the sdcard fuse tool
     11     mkdir /data/media 0775 media_rw media_rw
     12     chown media_rw media_rw /data/media
     13     setprop vold.post_fs_data_done 1
     14     mkdir /data/misc/dhcp 0770 dhcp dhcp
     15     chown dhcp dhcp /data/misc/dhcp
     16 
     17 on boot
     18 	mount debugfs /sys/kernel/debug /sys/kernel/debug
     19 	chmod 0666 /dev/pvrsrvkm
     20 
     21 on fs
     22 	mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/system /system wait ro
     23 	mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/userdata /data wait noatime nosuid nodev
     24 	mount ext4 /dev/block/platform/omap/omap_hsmmc.0/by-name/cache /cache wait noatime nosuid nodev
     25 
     26 # take a wakelock on boot until PM is working
     27 	write /sys/power/wake_lock hack
     28 
     29 service pvrsrvinit /vendor/bin/pvrsrvinit
     30 	class core
     31 	user root
     32 	group root
     33 	oneshot
     34 
     35 # create virtual SD card at /mnt/sdcard, based on the /data/media directory
     36 # daemon will drop to user/group system/media_rw after initializing
     37 # underlying files in /data/media will be created with user and group media_rw (1023)
     38 service sdcard /system/bin/sdcard /data/media 1023 1023
     39     class late_start
     40