jznomoney

Untitled

Mar 20th, 2011
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.71 KB | None | 0 0
  1. on boot
  2. mount debugfs /sys/kernel/debug /sys/kernel/debug
  3.  
  4. on fs
  5. mkdir /system
  6. mkdir /data 0771 system system
  7. mkdir /cache 0770 system cache
  8. mkdir /devlog 0700 root root
  9. devwait emmc@system
  10. # exec /system/bin/e2fsck_recvy -p emmc@system
  11. mount ext3 emmc@system /system ro data=ordered
  12. devwait emmc@userdata
  13. exec /system/bin/e2fsck_recvy -p emmc@userdata
  14. mount ext3 emmc@userdata /data nosuid nodev data=ordered
  15. devwait emmc@cache
  16. exec /system/bin/e2fsck_recvy -p emmc@cache
  17. mount ext3 emmc@cache /cache nosuid nodev data=ordered
  18. devwait emmc@devlog
  19. exec /system/bin/e2fsck_recvy -p emmc@devlog
  20. mount ext3 emmc@devlog /devlog nosuid nodev data=ordered
  21.  
  22. on early-init
  23. device mtd@misc 0460 radio diag
  24.  
  25. on init
  26. # double check the perms and set owner
  27. chown root root /devlog
  28. chmod 0700 /devlog
  29.  
  30. on boot
  31. #+from QCT Fusion
  32. mkdir /data/radio 0770 radio radio
  33. chown radio system /sys/module/smd_rpcrouter/parameters/debug_mask
  34. chown radio system /sys/module/rpcrouter_sdio_xprt/parameters/debug_mask
  35. #-from QCT Fusion
  36.  
  37. mkdir /data/misc/wifi 0770 wifi wifi
  38. mkdir /data/misc/wifi/sockets 0770 wifi wifi
  39. mkdir /data/misc/dhcp 0770 dhcp dhcp
  40. chown dhcp dhcp /data/misc/dhcp
  41. mkdir /data/d 0777 system system
  42. mount debugfs /data/d /data/d
  43.  
  44. chmod 0664 /sys/module/gpio_event/parameters/phone_call_status
  45. chown radio system /sys/module/gpio_event/parameters/phone_call_status
  46.  
  47. chmod 0640 /sys/camera_led_status/led_ril_status
  48. chown radio system /sys/camera_led_status/led_ril_status
  49.  
  50. chmod 0664 /sys/module/pm/parameters/idle_sleep_mode
  51.  
  52. # for disabling IPv6 over mobile network.
  53. write /proc/sys/net/ipv6/conf/rmnet0/disable_ipv6 1
  54. write /proc/sys/net/ipv6/conf/rmnet1/disable_ipv6 1
  55. write /proc/sys/net/ipv6/conf/rmnet2/disable_ipv6 1
  56.  
  57. # for Flip to speaker
  58. chown radio radio /sys/class/htc_accelerometer/accelerometer/PhoneOnOffFlag
  59. chown radio radio /sys/class/htc_ecompass/ecompass/PhoneOnOffFlag
  60.  
  61. # for Optical sensors
  62. chown system system /sys/class/optical_sensors/lightsensor/ls_adc
  63. chown system system /sys/class/optical_sensors/lightsensor/ls_auto
  64. chown system system /sys/class/optical_sensors/lightsensor/ls_kadc
  65. chown system radio /sys/class/optical_sensors/proximity/ps_adc
  66. chown system system /sys/class/optical_sensors/proximity/ps_kadc
  67. chown system system /sys/class/optical_sensors/proximity/ps_led
  68. chown system system /sys/class/optical_sensors/proximity/ps_test_mode
  69.  
  70. # bluetooth power up/down interface
  71. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
  72. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  73. chmod 0660 /sys/class/rfkill/rfkill0/state
  74.  
  75. # bluetooth MAC address programming
  76. chown bluetooth bluetooth /sys/module/board_spade/parameters/bdaddr
  77. setprop ro.bt.bdaddr_path /sys/module/board_spade/parameters/bdaddr
  78. # bluetooth car dock pin
  79. chown system system /sys/class/switch/dock/bt_pin
  80.  
  81. # Permissions for Liblights.
  82. chown system system /sys/class/leds/green/brightness
  83. chown system system /sys/class/leds/green/blink
  84. chown system system /sys/class/leds/amber/brightness
  85. chown system system /sys/class/leds/amber/blink
  86. chown system system /sys/class/leds/button-backlight/brightness
  87. chown system system /sys/class/leds/lcd-backlight/brightness
  88. chown system system /sys/class/leds/keyboard-backlight/brightness
  89.  
  90. chown system camera /sys/class/leds/flashlight/brightness
  91. chmod 0660 /sys/class/leds/flashlight/brightness
  92.  
  93. # Load kineto_gan.ko while booting
  94. # insmod /system/lib/modules/kineto_gan.ko
  95.  
  96. # Enable low memory killer to check file pages
  97. write /sys/module/lowmemorykiller/parameters/minfile 0,0,0,5120,5632,6144
  98. write /sys/module/lowmemorykiller/parameters/check_filepages 1
  99.  
  100. write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 90
  101. write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 50000
  102.  
  103. service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant \
  104. -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf
  105. # we will start as root and wpa_supplicant will switch to user wifi
  106. # after setting up the capabilities required for WEXT
  107. # user wifi
  108. # group wifi inet keystore
  109. socket wpa_eth0 dgram 660 wifi wifi
  110. disabled
  111. oneshot
  112.  
  113. service dhcpcd /system/bin/dhcpcd -ABKL eth0
  114. disabled
  115. oneshot
  116.  
  117. # compass/accelerometer daemon
  118. service akmd /system/bin/akmd
  119. user compass
  120. group compass misc input
  121.  
  122. # bugreport is triggered by the KEY_VOLUMEUP and BTN_MOUSE keycodes
  123. service bugreport /system/bin/dumpstate -d -v -o /sdcard/bugreports/bugreport
  124. disabled
  125. oneshot
  126. keycodes 114 115
  127.  
  128. service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm \
  129. --baudrate 3000000 --patchram /etc/firmware/bcm4329.hcd /dev/ttyHS0
  130. user bluetooth
  131. group bluetooth net_bt_admin
  132. disabled
  133.  
  134. service udhcpd /system/bin/udhcpd
  135. disabled
  136. oneshot
  137.  
  138. service netsharing_on /system/bin/netsharing net on
  139. disabled
  140. oneshot
  141.  
  142. service netsharing_off /system/bin/netsharing net off
  143. disabled
  144. oneshot
  145.  
  146. service rmt_storage /system/bin/rmt_storage /dev/block/mmcblk0p13 /dev/block/mmcblk0p14
  147. user root
  148. disabled
  149.  
  150. service htc_ebdlogd /system/bin/htc_ebdlogd -s -k -P 7
  151. user root
  152. disabled
  153. oneshot
  154.  
  155. service htc_ebdlogd_rel /system/bin/htc_ebdlogd -s -k
  156. user root
  157. disabled
  158. oneshot
  159.  
  160. on property:ro.build.tags=test-keys
  161. start htc_ebdlogd
  162.  
  163. on property:ro.build.tags=release-keys
  164. start htc_ebdlogd_rel
  165.  
  166. on property:ro.emmc=1
  167. start rmt_storage
Advertisement
Add Comment
Please, Sign In to add comment