/init.blade.rc

http://github.com/CyanogenMod/android_device_zte_blade · Windows Resource-Definition Script · 135 lines · 109 code · 26 blank · 0 comment · 0 complexity · 52918980f0b784f8eae39420171d3dcc MD5 · raw file

  1. service dhcp-service /system/bin/netcfg wlan0 dhcp
  2. oneshot
  3. on property:dev.bootcomplete=1
  4. stop dhcp-service
  5. start dhcp-service
  6. on boot
  7. # cpufreq configurations
  8. # write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 245760
  9. # write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
  10. write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 500000
  11. write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 90
  12. write /sys/devices/system/cpu/cpufreq/ondemand/down_threshold 30
  13. # Setup charging
  14. chown system system /sys/module/msm_battery/parameters/usb_chg_enable
  15. # Setup bluetooth
  16. chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
  17. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
  18. chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
  19. chown bluetooth bluetooth /proc/bluetooth/sleep/proto
  20. chown system system /sys/module/sco/parameters/disable_esco
  21. chmod 0660 /sys/module/bluetooth_power/parameters/power
  22. chmod 0660 /sys/class/rfkill/rfkill0/state
  23. chmod 0660 /proc/bluetooth/sleep/proto
  24. chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
  25. chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
  26. # Setup android gadget
  27. write /sys/module/g_android/parameters/serial_number CM7-Blade
  28. write /sys/module/g_android/parameters/product_id 0x1351
  29. #create WIFI filesystem structure
  30. mkdir /data/misc 01771 system misc
  31. mkdir /data/misc/wifi 0770 system wifi
  32. mkdir /data/misc/wifi/sockets
  33. chown system wifi /data/misc/wifi/sockets
  34. chmod 770 /data/misc/wifi/sockets
  35. mkdir /data/misc/dhcp 0770 dhcp dhcp
  36. chown dhcp dhcp /data/misc/dhcp
  37. mkdir /data/system 0775 system system
  38. mkdir /data/local
  39. chmod 0777 /data/local
  40. chown radio shell /data/local
  41. mkdir /data/local/tmp
  42. chmod 0777 /data/local/tmp
  43. chown radio shell /data/local/tmp
  44. # For qmuxd socket
  45. mkdir /data/radio 0770 radio radio
  46. chown radio radio 0770 /data/radio
  47. chown system system /sys/class/leds/green/blink
  48. chown system system /sys/class/leds/green/brightness
  49. chown system system /sys/class/leds/green/grpfreq
  50. chown system system /sys/class/leds/green/grppwm
  51. chown system system /sys/class/leds/red/blink
  52. chown system system /sys/class/leds/red/brightness
  53. chown system system /sys/class/leds/red/grpfreq
  54. chown system system /sys/class/leds/red/grppwm
  55. chown system system /sys/class/leds/amber/blink
  56. chown system system /sys/class/leds/amber/brightness
  57. chown system system /sys/class/leds/amber/grpfreq
  58. chown system system /sys/class/leds/amber/grppwm
  59. # SD card polling
  60. chown system system /sys/module/g_android/parameters/product_id
  61. chown system system /sys/devices/platform/msm_sdcc.1/polling
  62. chown system system /sys/devices/platform/msm_sdcc.2/polling
  63. chown system system /sys/devices/platform/msm_sdcc.3/polling
  64. chown system system /sys/devices/platform/msm_sdcc.4/polling
  65. chown system system /sys/devices/platform/android_usb/composition
  66. chown system system /sys/devices/platform/android_usb/remote_wakeup
  67. # Enable MASS storage on SDCARD
  68. write /sys/devices/platform/mass_storage/lun0/file /dev/block/mmcblk0p1
  69. write /sys/bus/platform/drivers/msm_sdcc/msm_sdcc.1/polling 1
  70. service qmuxd /system/bin/qmuxd
  71. on property:init.svc.bluetoothd=running
  72. write /sys/devices/virtual/bluetooth/hci0/idle_timeout 7000
  73. start abtfilt
  74. on property:init.svc.bluetoothd=stopped
  75. stop abtfilt
  76. service hci_qcomm_init /system/bin/log -t qcom-bluetooth -p i "hci_qcomm_init service requested"
  77. user bluetooth
  78. group bluetooth net_bt_admin
  79. disabled
  80. oneshot
  81. service hciattach /system/bin/sh /system/etc/init.bt.sh
  82. user bluetooth
  83. group qcom_oncrpc bluetooth net_bt_admin system
  84. disabled
  85. oneshot
  86. on property:init.svc.wpa_supplicant=stopped
  87. stop dhcpcd_wlan0
  88. # WPA SETTINGS
  89. service wpa_supplicant /system/bin/wpa_supplicant -Dawext -iwlan0 -W -c/data/misc/wifi/wpa_supplicant.conf
  90. group wifi inet
  91. socket wpa_wlan0 dgram 660 wifi wifi
  92. disabled
  93. oneshot
  94. service dhcpcd_wlan0 /system/bin/dhcpcd -BKL
  95. disabled
  96. oneshot
  97. #service wlan_tool /system/bin/wlan_tool
  98. # disabled
  99. # oneshot
  100. service abtfilt /system/bin/abtfilt -c -d -z -n
  101. disabled
  102. oneshot
  103. service akmd /system/bin/akmd2
  104. oneshot
  105. service hostapd /system/bin/hostapd /data/misc/wifi/hostapd.conf
  106. socket hostapd_athap0 dgram 660 wifi wifi
  107. group wifi inet
  108. oneshot
  109. disabled