OSDN Git Service

init.sh: honor sensors.${ro_hardware}.so first
[android-x86/device-generic-common.git] / init.x86.rc
1 import /init.bluetooth.rc
2 import /init.superuser.rc
3
4 on early-init
5     write /proc/sys/kernel/ctrl-alt-del 1
6
7     write /sys/module/xt_qtaguid/parameters/ctrl_write_limited N
8
9     export force_s3tc_enable true
10     export EGL_LOG_LEVEL info
11 #   export EGL_DRIVERS egl_dri2
12
13 on init
14     symlink /sdcard /mnt/sdcard
15     symlink /sdcard /storage/sdcard0
16
17     # Backward compatibility
18     symlink system/lib /lib
19
20 on fs
21     mount_all /fstab.${ro.hardware}
22
23 on post-fs
24     exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh
25
26 on post-fs-data
27     mkdir /data/misc/wifi 0770 wifi wifi
28     mkdir /data/misc/wifi/sockets 0770 wifi wifi
29     mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
30     mkdir /data/misc/dhcp 0770 dhcp dhcp
31     mkdir /data/system 0775 system system
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     setprop ro.radio.use-ppp yes
38     setprop ro.radio.noril no
39     setprop status.battery.state Slow
40     setprop status.battery.level 5
41     setprop status.battery.level_raw  50
42     setprop status.battery.level_scale 9
43
44     # merge from system.prop
45     setprop ro.config.sync yes
46     setprop app.setupwizard.disable 0
47     setprop ro.alarm.volume.adjustable true
48     setprop ro.simulated.phone false
49     # disable red frame boarder in eng build
50     setprop persist.sys.strictmode.visual 0
51     setprop persist.sys.strictmode.disable 1
52     # workaround for h.265 slowness
53     setprop sys.media.vdec.drop 0
54
55 service wpa_supplicant /system/bin/wpa_supplicant -c/data/misc/wifi/wpa_supplicant.conf \
56     -iwlan0 -Dnl80211 \
57     -O/data/misc/wifi/sockets \
58     -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
59     #   we will start as root and wpa_supplicant will switch to user wifi
60     #   after setting up the capabilities required for WEXT
61     #   user wifi
62     #   group wifi inet keystore
63     class main
64     socket wpa_wlan0 dgram 660 wifi wifi
65     disabled
66
67 service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
68     class main
69     disabled
70     oneshot
71
72 service iprenew_wlan0 /system/bin/dhcpcd -n
73     class main
74     disabled
75     oneshot
76
77 service dhcpcd_eth0 /system/bin/dhcpcd -ABDKL
78     class main
79     disabled
80     oneshot
81
82 service iprenew_eth0 /system/bin/dhcpcd -n
83     class main
84     disabled
85     oneshot
86
87 service nativebridge /system/bin/enable_nativebridge
88     class main
89     disabled
90     oneshot
91
92 service powerbtnd /system/bin/powerbtnd
93     class late_start
94
95 service logcat /system/bin/logcat -v threadtime -f /data/log.txt
96     class debug
97
98 service btattach /system/bin/btattach -Pbcm
99     class main
100     disabled
101     oneshot
102
103 service wacom-input /system/bin/wacom-input
104     disabled
105     oneshot
106
107 service tablet-mode /system/bin/tablet-mode
108     disabled
109     oneshot
110
111 on property:init.svc.wpa_supplicant=stopped
112     stop dhcpcd
113
114 on property:system_init.startsurfaceflinger=0
115     # disable cursor blinking
116     write /dev/tty0 "\e[?17;0;0c"
117     start surfaceflinger
118     stop console
119
120 on property:sys.boot_completed=1
121     write /proc/sys/kernel/ctrl-alt-del 0
122     exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
123
124 on property:init.svc.bluetoothd=running
125     exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
126
127 on property:init.svc.bluetoothd=stopped
128     exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
129
130 on property:net.dns1=*
131     exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
132
133 on property:debug.logcat=1
134     class_start debug
135
136 on property:persist.sys.nativebridge=1
137     mkdir /data/arm 0775 system system
138     start nativebridge
139
140 on property:persist.sys.nativebridge=0
141     stop nativebridge
142
143 on property:debug.egl.hw=0
144     setprop ro.kernel.qemu 1