Advertisement
t0mm13b

/init.blade.rc

Mar 15th, 2011
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.00 KB | None | 0 0
  1. U:\tools>type initbladerc
  2.  
  3.  
  4.  
  5.  
  6.  
  7. service dhcp-service /system/bin/netcfg wlan0 dhcp
  8. oneshot
  9.  
  10. on property:dev.bootcomplete=1
  11. stop dhcp-service
  12. start dhcp-service
  13.  
  14. on boot
  15.  
  16. # cpufreq configurations
  17. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 245760
  18. write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
  19. write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 20000
  20. write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 76
  21. write /sys/devices/system/cpu/cpufreq/ondemand/down_threshold 60
  22.  
  23.  
  24. # Setup bluetooth
  25. chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
  26. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
  27. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  28. chown bluetooth bluetooth /proc/bluetooth/sleep/proto
  29. chown system system /sys/module/sco/parameters/disable_esco
  30. chmod 0660 /sys/module/bluetooth_power/parameters/power
  31. chmod 0660 /sys/class/rfkill/rfkill0/state
  32. chmod 0660 /proc/bluetooth/sleep/proto
  33. chown bluetooth bluetooth /dev/ttyHS0
  34. chmod 0660 /dev/ttyHS0
  35. chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
  36. chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
  37.  
  38.  
  39. #create WIFI filesystem structure
  40. mkdir /data/misc 01771 system misc
  41. mkdir /data/misc/wifi 0770 system wifi
  42. mkdir /data/misc/wifi/sockets
  43. chown system wifi /data/misc/wifi/sockets
  44. chmod 770 /data/misc/wifi/sockets
  45. mkdir /data/misc/dhcp 0770 dhcp dhcp
  46. chown dhcp dhcp /data/misc/dhcp
  47. mkdir /data/system 0775 system system
  48.  
  49. # Permission for ril
  50. chown radio system /dev/pm_monitor
  51. chmod 0770 /ddev/pm_monitor
  52. chown radio system /dev/oncrpc/30000016:9c95bb4d
  53. chown radio system /dev/oncrpc/30000000:dd7fe79a
  54. chown radio system /dev/oncrpc/30000019:821a1945
  55. chown radio system /dev/oncrpc/3000003c:beb78360
  56. chown radio system /dev/oncrpc/30000003:d03123cc
  57. chown radio system /dev/oncrpc/3000000e:00060000
  58. chown radio system /dev/oncrpc/30000012:00010000
  59. mkdir /data/local
  60. chmod 0777 /data/local
  61. chown radio shell /data/local
  62. mkdir /data/local/tmp
  63. chmod 0777 /data/local/tmp
  64. chown radio shell /data/local/tmp
  65.  
  66. # For qmuxd socket
  67. mkdir /data/radio 0770 radio radio
  68. chown radio radio 0770 /data/radio
  69.  
  70. chown radio system /dev/pm_monitor
  71.  
  72. # Sensors
  73. chmod 0777 /dev/akm8973_aot
  74. chmod 0777 /dev/akm8973_dev
  75.  
  76. chown system system /sys/class/leds/green/device/grpfreq
  77. chown system system /sys/class/leds/green/device/grppwm
  78. chown system system /sys/class/leds/red/blink
  79. chown system system /sys/class/leds/green/blink
  80. chown system system /sys/class/leds/red/brightness
  81. chown system system /sys/class/leds/green/brightness
  82. chown system system /sys/class/leds/blue/brightness
  83. chown system system /sys/class/leds/red/device/grpfreq
  84. chown system system /sys/class/leds/red/device/grppwm
  85. chown system system /sys/class/leds/green/device/grpfreq
  86. chown system system /sys/class/leds/green/device/grppwm
  87. chown system system /sys/class/leds/red/blink
  88. chown system system /sys/class/leds/green/blink
  89.  
  90. # SD card polling
  91. chown system system /sys/bus/platform/devices/msm_sdcc.1/polling
  92. chown system system /sys/bus/platform/devices/msm_sdcc.2/polling
  93.  
  94. # Enable MASS storage on SDCARD
  95. write /sys/devices/platform/mass_storage/lun0/file /dev/block/mmcblk0p1
  96. write /sys/bus/platform/drivers/msm_sdcc/msm_sdcc.1/polling 1
  97.  
  98.  
  99. service usbconfig /sbin/usbconfig
  100. oneshot
  101.  
  102. service qmuxd /system/bin/qmuxd
  103.  
  104. service hci_qcomm_init /system/bin/log -t qcom-bluetooth -p i "hci_qcomm_init s
  105. rvice requested"
  106. user bluetooth
  107. group bluetooth net_bt_admin
  108. disabled
  109. oneshot
  110.  
  111. service hciattach /system/bin/sh /system/etc/init.bt.sh
  112. user bluetooth
  113. group qcom_oncrpc bluetooth net_bt_admin system
  114. disabled
  115. oneshot
  116.  
  117. on property:init.svc.wpa_supplicant=stopped
  118. stop dhcpcd
  119.  
  120.  
  121. # WPA SETTINGS
  122. service wpa_supplicant /system/bin/wpa_supplicant -Dawext -iwlan0 -W -c/data/mi
  123. c/wifi/wpa_supplicant.conf
  124. group wifi inet
  125. socket wpa_wlan0 dgram 660 wifi wifi
  126. disabled
  127. oneshot
  128.  
  129. service dhcpcd /system/bin/dhcpcd wlan0 -BKL
  130. disabled
  131. oneshot
  132.  
  133. #service wlan_tool /system/bin/wlan_tool
  134. # disabled
  135. # oneshot
  136.  
  137. #service abtfilt /system/bin/abtfilt -c -d -z -n
  138. # disabled
  139. # oneshot
  140.  
  141. service akmd /system/bin/akmd2
  142. oneshot
  143.  
  144. #service ckpd /system/bin/CKPD-daemon
  145. # onrestart /system/bin/log -t RIL-CKPD -p w "CKPD daemon restarted"
  146.  
  147. on property:persist.sys.charging.disable=1
  148. write /sys/module/msm_battery/parameters/usb_chg_enable 0
  149.  
  150. on property:persist.sys.charging.disable=0
  151. write /sys/module/msm_battery/parameters/usb_chg_enable 1
  152.  
  153. service hostapd /system/bin/hostapd /data/misc/wifi/hostapd.conf
  154. socket hostapd_athap0 dgram 660 wifi wifi
  155. group wifi inet
  156. oneshot
  157. disabled
  158.  
  159.  
  160. U:\tools>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement