fosser22

Untitled

Feb 5th, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.86 KB | None | 0 0
  1. import init.harmony.usb.rc
  2.  
  3. on early-init
  4. mount debugfs debugfs /sys/kernel/debug
  5.  
  6. export SECONDARY_STORAGE /storage/microsd
  7. export EXTERNAL_STORAGE /storage/sdcard0
  8. mkdir /storage 0775 system sdcard_rw
  9. mkdir /storage/sdcard0 0000 system system
  10. mkdir /storage/microsd 0000 system system
  11. mkdir /mnt/usbdisk 0666 system system
  12.  
  13. # for backwards compatibility
  14. symlink /storage/sdcard0 /sdcard
  15. symlink /storage/sdcard0 /mnt/sdcard
  16. symlink /mnt/usbdisk /usbdisk
  17. symlink /storage/microsd /microsd
  18.  
  19. on fs
  20. # Mount /system rw first to give the filesystem a chance to save a checkpoint
  21. mount yaffs2 mtd@system /system
  22. mount yaffs2 mtd@system /system ro remount
  23. setprop ro.crypto.tmpfs_options size=128m,mode=0771,uid=1000,gid=1000
  24. mount ext4 /dev/block/mmcblk0p2 /data wait noatime nodiratime noauto_da_alloc nosuid nodev
  25. mount yaffs2 mtd@cache /cache wait noatime nosuid nodev
  26.  
  27. on post-fs-data
  28. mkdir /data/misc/wifi 0770 wifi wifi
  29. mkdir /data/misc/wifi/sockets 0770 wifi wifi
  30. mkdir /data/misc/dhcp 0770 dhcp dhcp
  31. chown dhcp dhcp /data/misc/dhcp
  32.  
  33. # Set indication (checked by vold) that we have finished this action
  34. setprop vold.post_fs_data_done 1
  35.  
  36. on boot
  37.  
  38.  
  39. # bluetooth permissions
  40. chmod 0660 /dev/ttyHS2
  41. chown bluetooth bluetooth /dev/ttyHS2
  42. chmod 0660 /sys/class/rfkill/rfkill0/state
  43. chmod 0660 /sys/class/rfkill/rfkill0/type
  44. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  45. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
  46. write /sys/class/rfkill/rfkill0/state 0
  47. symlink /system/lib/hw/wlan/bcm4329B1.hcd /data/BCM4329B1.hcd
  48. symlink /system/lib/hw/wlan/bcm4329B1.hcd /data/bcm4329B1.hcd
  49. chmod 0777 /data/bcm4329B1.hcd
  50.  
  51. # backlight
  52. chown system system /sys/class/backlight/pwm-backlight/brightness
  53.  
  54. # Sensor
  55. chmod 666 /dev/tegra_mediaserver
  56. chmod 666 /dev/tegra_dc_0
  57. chmod 666 /dev/tegra_dc_1
  58. chmod 666 /dev/nvhost-ctrl
  59. chmod 666 /dev/nvhost-display
  60. chmod 666 /dev/nvhost-dsi
  61. chmod 666 /dev/nvhost-gr2d
  62. chmod 666 /dev/nvhost-gr3d
  63. chmod 666 /dev/nvhost-isp
  64. chmod 666 /dev/nvhost-mpe
  65. chmod 666 /dev/nvhost-vi
  66. chmod 664 /sys/bus/iio/devices/device0/lux
  67. chmod 664 /sys/bus/iio/devices/device0/proxim_ir
  68.  
  69. # Power management settings
  70. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 216000
  71. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1000000
  72. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
  73. write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 216000
  74. write /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq 1000000
  75. write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive
  76. write /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load 80
  77.  
  78. # Default Read Ahead value for sdcards
  79. write /sys/block/mmcblk0/queue/read_ahead_kb 2048
  80. write /sys/block/mmcblk1/queue/read_ahead_kb 2048
  81.  
  82. # GPS
  83. mkdir /data/gps
  84. chown system system /data/gps
  85. chmod 770 /data/gps
  86.  
  87. # Swap
  88. # mkswap /dev/block/zram0
  89. # swapon /dev/block/zram0
  90.  
  91. service wpa_supplicant /system/bin/wpa_supplicant \
  92. -Dnl80211 -iwlan0 -puse_p2p_group_interface=1 -c/data/misc/wifi/wpa_supplicant.conf -e/data/misc/wifi/entropy.bin
  93. class main
  94. socket wpa_wlan0 dgram 660 wifi wifi
  95. disabled
  96. oneshot
  97.  
  98. service p2p_supplicant /system/bin/wpa_supplicant \
  99. -Dnl80211 -iwlan0 -puse_p2p_group_interface=1 -c/data/misc/wifi/wpa_supplicant.conf
  100. class main
  101. socket wpa_wlan0 dgram 660 wifi wifi
  102. disabled
  103. oneshot
  104.  
  105. service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
  106. class main
  107. disabled
  108. oneshot
  109.  
  110. service dhcpcd_p2p /system/bin/dhcpcd -aABKL
  111. class main
  112. disabled
  113. oneshot
  114.  
  115. service dhcpcd_eth0 /system/bin/dhcpcd -ABKL -f/system/etc/dhcpcd/dhcpcd.conf
  116. class main
  117. disabled
  118. oneshot
  119.  
  120. # bluetooth
  121. service dhcpcd_bnep0 /system/bin/dhcpcd -ABKL
  122. disabled
  123. oneshot
  124.  
  125. service iprenew_wlan0 /system/bin/dhcpcd -n
  126. disabled
  127. oneshot
  128.  
  129. service iprenew_p2p /system/bin/dhcpcd -n
  130. class main
  131. disabled
  132. oneshot
  133.  
  134. service iprenew_eth0 /system/bin/dhcpcd -n
  135. class main
  136. disabled
  137. oneshot
  138.  
  139. #BCM
  140. service hciattach /system/bin/brcm_patchram_plus --enable_hci \
  141. --baudrate 921600 --use_baudrate_for_download --patchram /system/etc/firmware/bcm4329.hcd --tosleep 50000 \
  142. --i2s=1,1,0,1 --enable_lpm /dev/ttyHS2
  143. class main
  144. user root
  145. group system bluetooth net_bt_admin misc
  146. oneshot
  147. disabled
  148.  
  149. # Enable tcpdump-service
  150. #service netdump-service /system/xbin/tcpdump -i any -C 5 -p -s 0 -w /sdcard/netdump.cap
  151. # user root
  152. # disabled
  153.  
  154. #on property:net.netdump.enable=1
  155. # start netdump-service
  156.  
  157. #on property:net.netdump.enable=0
  158. # stop netdump-service
Add Comment
Please, Sign In to add comment