Home | History | Annotate | Download | only in panda
      1 import init.omap4pandaboard.usb.rc
      2 
      3 on early-init
      4     export EXTERNAL_STORAGE /storage/sdcard0
      5     mkdir /storage 0050 system sdcard_r
      6     mkdir /storage/sdcard0 0000 system system
      7     # for backwards compatibility
      8     symlink /storage/sdcard0 /sdcard
      9     symlink /storage/sdcard0 /mnt/sdcard
     10 
     11 on post-fs-data
     12     # we will remap this as /storage/sdcard0 with the sdcard fuse tool
     13     mkdir /data/media 0770 media_rw media_rw
     14     chown media_rw media_rw /data/media
     15     setprop vold.post_fs_data_done 1
     16     mkdir /data/misc/dhcp 0770 dhcp dhcp
     17     chown dhcp dhcp /data/misc/dhcp
     18     mkdir /data/misc/wifi/sockets 0770 wifi wifi
     19 
     20 on boot
     21 	mount debugfs /sys/kernel/debug /sys/kernel/debug
     22 	chmod 0666 /dev/pvrsrvkm
     23 
     24 on fs
     25 	mount_all /fstab.omap4pandaboard
     26 
     27 # change permissions for Bluetooth/FM/GPS
     28     chmod 0600 /sys/class/rfkill/rfkill0/state
     29     chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
     30     chmod 0600 /dev/ttyO1
     31     chown bluetooth bluetooth /dev/ttyO1
     32 
     33 
     34 # take a wakelock on boot until PM is working
     35 	write /sys/power/wake_lock hack
     36 
     37 service pvrsrvinit /vendor/bin/pvrsrvinit
     38 	class core
     39 	user root
     40 	group root
     41 	oneshot
     42 
     43 #shared transport user space mgr service for Bluetooth, FM and GPS
     44 service uim /system/bin/uim-sysfs
     45 	class core
     46 	user bluetooth
     47 	group bluetooth net_bt_admin
     48 
     49 # create virtual SD card at /storage/sdcard0, based on the /data/media directory
     50 # daemon will drop to user/group system/media_rw after initializing
     51 # underlying files in /data/media will be created with user and group media_rw (1023)
     52 service sdcard /system/bin/sdcard /data/media 1023 1023
     53     class late_start
     54 
     55 service wpa_supplicant /system/bin/wpa_supplicant -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf -dd
     56     socket wpa_wlan0 dgram 660 wifi wifi
     57     disabled
     58     oneshot
     59 
     60 service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
     61     disabled
     62     oneshot
     63 
     64 service iprenew_wlan0 /system/bin/dhcpcd -n
     65     disabled
     66     oneshot
     67 
     68 service dhcpcd_eth0 /system/bin/dhcpcd -ABKL
     69     disabled
     70     oneshot
     71 
     72 service iprenew_eth0 /system/bin/dhcpcd -n
     73     disabled
     74     oneshot
     75