Home | History | Annotate | Download | only in panda
      1 import init.omap4pandaboard.usb.rc
      2 
      3 on 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 
     18 on 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 
     26 on boot
     27 	mount debugfs /sys/kernel/debug /sys/kernel/debug
     28 	chmod 0666 /dev/pvrsrvkm
     29 
     30 on 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
     44 service bugreport /system/bin/dumpstate -d -p -B \
     45         -o /data/data/com.android.shell/files/bugreports/bugreport
     46 	class main
     47 	disabled
     48 	oneshot
     49 	keycodes 102 272
     50 
     51 
     52 service pvrsrvctl /vendor/bin/pvrsrvctl --start --no-module
     53 	class core
     54 	user root
     55 	group root
     56 	oneshot
     57 
     58 # create filesystems if necessary
     59 service setup_fs /system/bin/setup_fs \
     60 		/dev/block/platform/omap/omap_hsmmc.0/by-name/cache \
     61 		/dev/block/platform/omap/omap_hsmmc.0/by-name/userdata
     62         class core
     63         user root
     64         group root
     65         oneshot
     66 
     67 #shared transport user space mgr service for Bluetooth, FM and GPS
     68 service uim /system/bin/uim-sysfs
     69 	class core
     70 	user bluetooth
     71 	group bluetooth net_bt_admin
     72 
     73 # virtual sdcard daemon running as media_rw (1023)
     74 service sdcard /system/bin/sdcard /data/media /mnt/shell/sdcard0 1023 1023
     75     class late_start
     76 
     77 service wpa_supplicant /system/bin/wpa_supplicant -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf -dd
     78     socket wpa_wlan0 dgram 660 wifi wifi
     79     disabled
     80     oneshot
     81 
     82 service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
     83     disabled
     84     oneshot
     85 
     86 service iprenew_wlan0 /system/bin/dhcpcd -n
     87     disabled
     88     oneshot
     89 
     90 service dhcpcd_eth0 /system/bin/dhcpcd -ABKL
     91     disabled
     92     oneshot
     93 
     94 service iprenew_eth0 /system/bin/dhcpcd -n
     95     disabled
     96     oneshot
     97