OSDN Git Service

Merge remote-tracking branch 'x86/nougat-x86' into cm-14.1-x86
[android-x86/device-generic-common.git] / init.x86.rc
1 import /init.superuser.rc
2
3 on early-init
4     write /proc/sys/kernel/ctrl-alt-del 1
5
6     write /sys/module/xt_qtaguid/parameters/ctrl_write_limited N
7
8     export force_s3tc_enable true
9     export EGL_LOG_LEVEL info
10 #   export EGL_DRIVERS egl_dri2
11
12 on init
13     symlink /sdcard /mnt/sdcard
14     symlink /sdcard /storage/sdcard0
15
16 on fs
17     mount_all /fstab.${ro.hardware}
18
19 on post-fs
20     exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh
21
22 on post-fs-data
23     mkdir /data/misc/wifi 0770 wifi wifi
24     mkdir /data/misc/wifi/sockets 0770 wifi wifi
25     mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
26     mkdir /data/misc/dhcp 0770 dhcp dhcp
27     mkdir /data/system 0775 system system
28
29     # Set indication (checked by vold) that we have finished this action
30     setprop vold.post_fs_data_done 1
31
32 on boot
33     setprop ro.radio.use-ppp yes
34     setprop status.battery.state Slow
35     setprop status.battery.level 5
36     setprop status.battery.level_raw  50
37     setprop status.battery.level_scale 9
38     setprop wifi.interface "wlan0"
39     setprop wlan.driver.status "ok"
40
41     # merge from system.prop
42     setprop ro.config.sync yes
43     setprop app.setupwizard.disable 0
44     setprop ro.alarm.volume.adjustable true
45     setprop ro.simulated.phone false
46     # disable red frame boarder in eng build
47     setprop persist.sys.strictmode.visual 0
48     setprop persist.sys.strictmode.disable 1
49     # workaround for h.265 slowness
50     setprop sys.media.vdec.drop 0
51
52 service wpa_supplicant /system/bin/wpa_supplicant -c/data/misc/wifi/wpa_supplicant.conf \
53     -iwlan0 -Dnl80211 \
54     -O/data/misc/wifi/sockets \
55     -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
56     #   we will start as root and wpa_supplicant will switch to user wifi
57     #   after setting up the capabilities required for WEXT
58     #   user wifi
59     #   group wifi inet keystore
60     class main
61     socket wpa_wlan0 dgram 660 wifi wifi
62     disabled
63
64 service nativebridge /system/bin/enable_nativebridge
65     class main
66     disabled
67     oneshot
68
69 service logcat /system/bin/logcat -v threadtime -f /data/log.txt
70     class debug
71
72 service btattach /system/bin/btattach
73     class main
74     disabled
75     oneshot
76
77 service rtk_hciattach /vendor/bin/rtk_hciattach -n -s 115200 /dev/rtk_h5 rtk_h5
78     class main
79     disabled
80     oneshot
81
82 service wacom-input /system/bin/wacom-input
83     disabled
84     oneshot
85
86 service tablet-mode /system/bin/tablet-mode
87     disabled
88     oneshot
89
90 on property:system_init.startsurfaceflinger=0
91     # disable cursor blinking
92     write /dev/tty0 "\e[?17;0;0c"
93     start surfaceflinger
94     stop console
95
96 on property:sys.boot_completed=1
97     write /proc/sys/kernel/ctrl-alt-del 0
98     exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
99
100 on property:net.dns1=*
101     exec -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
102
103 on property:debug.logcat=1
104     class_start debug
105
106 on property:persist.sys.nativebridge=1
107     mkdir /data/arm 0775 system system
108     start nativebridge
109
110 on property:persist.sys.nativebridge=0
111     stop nativebridge
112
113 on property:debug.egl.hw=0
114     setprop ro.kernel.qemu 1