OSDN Git Service

init: Only tell Android we have a ril when we have one
[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 status.battery.state Slow
39     setprop status.battery.level 5
40     setprop status.battery.level_raw  50
41     setprop status.battery.level_scale 9
42
43     # merge from system.prop
44     setprop ro.config.sync yes
45     setprop app.setupwizard.disable 0
46     setprop ro.alarm.volume.adjustable true
47     setprop ro.simulated.phone false
48     # disable red frame boarder in eng build
49     setprop persist.sys.strictmode.visual 0
50     setprop persist.sys.strictmode.disable 1
51     # workaround for h.265 slowness
52     setprop sys.media.vdec.drop 0
53
54 service wpa_supplicant /system/bin/wpa_supplicant -c/data/misc/wifi/wpa_supplicant.conf \
55     -iwlan0 -Dnl80211 \
56     -O/data/misc/wifi/sockets \
57     -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
58     #   we will start as root and wpa_supplicant will switch to user wifi
59     #   after setting up the capabilities required for WEXT
60     #   user wifi
61     #   group wifi inet keystore
62     class main
63     socket wpa_wlan0 dgram 660 wifi wifi
64     disabled
65
66 service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
67     class main
68     disabled
69     oneshot
70
71 service iprenew_wlan0 /system/bin/dhcpcd -n
72     class main
73     disabled
74     oneshot
75
76 service dhcpcd_eth0 /system/bin/dhcpcd -ABDKL
77     class main
78     disabled
79     oneshot
80
81 service iprenew_eth0 /system/bin/dhcpcd -n
82     class main
83     disabled
84     oneshot
85
86 service nativebridge /system/bin/enable_nativebridge
87     class main
88     disabled
89     oneshot
90
91 service powerbtnd /system/bin/powerbtnd
92     class late_start
93
94 service logcat /system/bin/logcat -v threadtime -f /data/log.txt
95     class debug
96
97 service btattach /system/bin/btattach -Pbcm
98     class main
99     disabled
100     oneshot
101
102 service wacom-input /system/bin/wacom-input
103     disabled
104     oneshot
105
106 service tablet-mode /system/bin/tablet-mode
107     disabled
108     oneshot
109
110 on property:init.svc.wpa_supplicant=stopped
111     stop dhcpcd
112
113 on property:system_init.startsurfaceflinger=0
114     # disable cursor blinking
115     write /dev/tty0 "\e[?17;0;0c"
116     start surfaceflinger
117     stop console
118
119 on property:sys.boot_completed=1
120     write /proc/sys/kernel/ctrl-alt-del 0
121     exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
122
123 on property:init.svc.bluetoothd=running
124     exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
125
126 on property:init.svc.bluetoothd=stopped
127     exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh hci
128
129 on property:net.dns1=*
130     exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
131
132 on property:debug.logcat=1
133     class_start debug
134
135 on property:persist.sys.nativebridge=1
136     mkdir /data/arm 0775 system system
137     start nativebridge
138
139 on property:persist.sys.nativebridge=0
140     stop nativebridge
141
142 on property:debug.egl.hw=0
143     setprop ro.kernel.qemu 1