Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 243 lines (198 sloc) 7.696 kb
f1a5be2 Ricardo Cerqueira star: Assorted fixes, and add a common star initrc
rmcc authored
1 import init.star.usb.rc
2
3 on init
4 export TMPDIR /data/local/tmp
5 export EXTERNAL_STORAGE /storage/sdcard0
6
7 # Backward compatibility
8 symlink /system/bin /bin
9
10 # create mountpoints for storage
ade1fc8 Ricardo Cerqueira star: Let apps in the sdcard_r group list available storage paths
rmcc authored
11 mkdir /storage 0050 system sdcard_r
f1a5be2 Ricardo Cerqueira star: Assorted fixes, and add a common star initrc
rmcc authored
12 mkdir /storage/sdcard0 0000 system system
13 mkdir /storage/sdcard1 0000 system system
14 symlink /storage/sdcard0 /sdcard
15
16 # Secure container public mount points.
17 mkdir /mnt/asec 0700 root system
18 mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000
19 #20100722, taein.kim@lge.com, Add external security folder [START]
20 mkdir /mnt/extasec 0700 root system
21 mount tmpfs tmpfs /mnt/extasec mode=0755,gid=1000 noatime
22 #20100722, taein.kim@lge.com, Add external security folder [END]
23
24 ## ANDY_PORTING LGDRM [lg-drm@lge.com 100401]
25 mkdir /lgdrm 0770 system audio
26 ## ANDY_END
27
28 on early-init
29 write /sys/class/firmware/timeout 5
30
31 on fs
32 on post-fs
33
34 chmod 0777 /data/misc/wifi/config_mac # 20101202 mingi.sung@lge.com [WLAN] AT command - MAC address read/write function
35 mkdir /data/audioprop 0777 system system
36 # 20100716 mingi.sung@lge.com <make wifi directory> [START]
37 # WIFI
38 mkdir /data/misc/wifi/sockets 0770 wifi wifi
39 setprop wifi.supplicant_scan_interval 20
40 setprop wifi.interface wlan0
41 # DHCP
42 mkdir /data/misc/dhcp 0777 system system
43 # 20100716 mingi.sung@lge.com <make wifi directory> [END]
44
45 ## ANDY_PORTING LGDRM [lg-drm@lge.com 100401]
46 # create dirs if not exist
47 mkdir /data/lgdrm 0770 root root
48 mkdir /data/wmdrm 0770 root root
49
50 setprop vold.post_fs_data_done 1
51
52 on boot
53
54 # Hall IC
55 chmod 0644 /sys/devices/platform/star_hall/onoff
56 chmod 0644 /sys/devices/platform/star_hall/sensing
57 chown system system /sys/devices/platform/star_hall/onoff
58 chown system system /sys/devices/platform/star_hall/sensing
59
60 # Proximity
61 chmod 0644 /sys/devices/platform/tegra-i2c.1/i2c-2/2-0044/status
62 chmod 0644 /sys/devices/platform/tegra-i2c.1/i2c-2/2-0044/enable
63 chown system system /sys/devices/platform/tegra-i2c.1/i2c-2/2-0044/status
64 chown system system /sys/devices/platform/tegra-i2c.1/i2c-2/2-0044/enable
65 #MOBII_CHNANGE_E 20120213 mg.chang@mobii.co.kr : Appy Sensor Porting
66
67 chmod 0664 /sys/devices/platform/i2c-gpio.5/i2c-5/5-0060/alc
68 chown system system /sys/devices/platform/i2c-gpio.5/i2c-5/5-0060/alc
69
70 # Battery
71
72 # audio
73 chmod 0664 /sys/power/suspend/mode
74 chown system audio /sys/power/suspend/mode
75 # LGE_CHANGE_S [chahee.kim@lge.com] 2012-02-15
76 chown audio audio /dev/pts29
77 # LGE_CHANGE_E [chahee.kim@lge.com] 2012-02-15
78
79
80 # Power management settings
81 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 216000
82 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1200000
83 write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
84 write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor interactive
85 write /sys/devices/system/cpu/cpufreq/interactive/go_maxspeed_load 80
86 write /sys/devices/system/cpu/cpufreq/interactive/boost_factor 2
87 write /sys/devices/system/cpu/cpufreq/interactive/sustain_load 80
88 write /sys/module/cpuidle/parameters/lp2_in_idle 1
89
90
91 setprop net.tcp.buffersize.default 4096,87380,196608,4096,16384,110208
92 setprop net.tcp.buffersize.wifi 4096,87380,393216,4096,16384,110208
93 setprop net.tcp.buffersize.umts 4096,87380,393216,4096,16384,110208
94 setprop net.tcp.buffersize.edge 4096,26280,393216,4096,16384,35040
95 setprop net.tcp.buffersize.gprs 4096,8760,393216,4096,8760,11680
96 setprop net.tcp.buffersize.hspa 4096,87380,393216,4096,16384,110208
97
98 # Define sensor settings
99 chown system system /sys/devices/platform/tegra_gyro_accel/tilt_onoff
100 chown system system /sys/devices/platform/tegra_gyro_accel/tap_onoff
101 chown system system /sys/devices/platform/tegra_gyro_accel/shake_onoff
102 chown system system /sys/devices/platform/tegra_gyro_accel/snap_onoff
103 chown system system /sys/devices/platform/tegra_gyro_accel/flip_onoff
104 chown system system /sys/devices/platform/tegra_gyro_accel/tilt_delay
105 chown system system /sys/devices/platform/i2c-gpio.5/i2c-5/5-0060/lsensor_onoff
106 chown system system /sys/devices/platform/i2c-gpio.5/i2c-5/5-0060/alc
107
108 # light controls
109 chown system system /sys/class/leds/buttonpanel/brightness
110 chown system system /sys/class/leds/buttonpanel/enable
111 chown system system /sys/class/leds/buttonpanel/pulse
112 chown system system /sys/class/leds/buttonpanel/pulse_interval
113
114 # 20101107, sglee76@lge.com, FOTA [START]
115 mkdir /data/fota 0777 system system
116 chown system system /data/fota
117 chmod 0777 /data/fota
118
119 chmod 777 /dev/block/mmcblk0p3
120 # kernel read permission
121 chmod 644 /dev/block/mmcblk0p5
122 # 20101107, sglee76@lge.com, FOTA [END]
123
124 ## LGE's bluetooth stuff
125 # bluetooth permissions
126 chmod 0660 /dev/ttyHS2
127 chown bluetooth bluetooth /dev/ttyHS2
128 chmod 0660 /sys/class/rfkill/rfkill0/state
129 chmod 0660 /sys/class/rfkill/rfkill0/type
130 chmod 0660 /sys/class/rfkill/rfkill1/state
131 chmod 0660 /sys/class/rfkill/rfkill1/type
132
133 chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
134 chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
135 chown bluetooth bluetooth /sys/class/rfkill/rfkill1/state
136 chown bluetooth bluetooth /sys/class/rfkill/rfkill1/type
137 write /sys/class/rfkill/rfkill0/state 0
138 ### End of LGE bluetooth
139
140 chmod 0644 /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
141
142 on post-fs-data
143 mkdir /data/misc/wifi 0770 wifi wifi
144 mkdir /data/misc/wifi/sockets 0770 wifi wifi
145 mkdir /data/misc/dhcp 0770 dhcp dhcp
146 chown dhcp dhcp /data/misc/dhcp
147 setprop vold.post_fs_data_done 1
148
149 service lgdrm /system/bin/lgdrmserver
150 class core
151 user root
152 group sdcard_rw radio
153
154 service dhcpcd_wlan0 /system/bin/dhcpcd -aBKAL
155 class core
156 disabled
157 oneshot
158
159 service iprenew_wlan0 /system/bin/dhcpcd -n wlan0
160 class main
161 disabled
162 oneshot
163
164 on property:init.svc.wpa_supplicant=stopped
165 stop dhcpcd_wlan0
166
167 service wpa_supplicant /system/bin/wpa_supplicant -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
168 class main
169 socket wpa_wlan0 dgram 660 wifi wifi
170 disabled
171 oneshot
172
173 on boot
174 setprop nvcpud.enabled true
175 setprop nvcpud.config_refresh_ms -1
176
177 service nvcpud /system/bin/nvcpud
178 class main
179 user root
180 group root
181
182 # Daemon for Gyro Sensor
183 #service motion /system/bin/motion
184 # class main
185 # user system
186 # group system
187 # oneshot
188 # disabled
189
190 on property:dev.bootcomplete=1
191 #start hdmid
192 start motion
193 ### KSM
194 write /sys/kernel/mm/ksm/run 1
195
196 service rawip_vsnet1 /system/bin/init.vsnet 1
197 class main
198 user root
199 group radio cache inet misc net_admin net_raw
200 disabled
201 oneshot
202
203 service rawip_vsnet2 /system/bin/init.vsnet 2
204 class main
205 user root
206 group radio cache inet misc net_admin net_raw
207 disabled
208 oneshot
209
210 service rawip_vsnet3 /system/bin/init.vsnet 3
211 class main
212 user root
213 group radio cache inet misc net_admin net_raw
214 disabled
215 oneshot
216
217 service rawip_vsnet4 /system/bin/init.vsnet 4
218 class main
219 user root
220 group radio cache inet misc net_admin net_raw
221 disabled
222 oneshot
223
224 service vsnet1_down /system/bin/init.vsnet-down 1
225 user root
226 group radio cache inet misc
227 disabled
228 oneshot
229
230 service vsnet2_down /system/bin/init.vsnet-down 2
231 user root
232 group radio cache inet misc
233 disabled
234 oneshot
235
236 service hciattach /system/bin/brcm_patchram_plus --enable_hci \
237 --baudrate 3000000 --patchram /etc/firmware/bcm4329.hcd \
238 /dev/ttyHS2
239 class main
240 user bluetooth
241 group bluetooth net_bt_admin
242 disabled
Something went wrong with that request. Please try again.