OSDN Git Service

init.sh: honor video cmdline for all supported GPUs
[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
14 on fs
15     mount_all /fstab.${ro.hardware}
16
17 on post-fs
18     exec u:r:init:s0 -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh
19
20 on post-fs-data
21     mkdir /data/misc/wifi 0770 wifi wifi
22     mkdir /data/misc/wifi/sockets 0770 wifi wifi
23     mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
24     mkdir /data/misc/dhcp 0770 dhcp dhcp
25     mkdir /data/system 0775 system system
26
27     # Set indication (checked by vold) that we have finished this action
28     setprop vold.post_fs_data_done 1
29
30 on boot
31     setprop ro.radio.use-ppp yes
32     setprop status.battery.state Slow
33     setprop status.battery.level 5
34     setprop status.battery.level_raw  50
35     setprop status.battery.level_scale 9
36
37     # merge from system.prop
38     setprop ro.config.sync yes
39     setprop app.setupwizard.disable 0
40     setprop ro.alarm.volume.adjustable true
41     setprop ro.simulated.phone false
42     # disable red frame boarder in eng build
43     setprop persist.sys.strictmode.visual 0
44     setprop persist.sys.strictmode.disable 1
45     # workaround for h.265 slowness
46     setprop sys.media.vdec.drop 0
47
48 service wpa_supplicant /system/bin/wpa_supplicant -c/data/misc/wifi/wpa_supplicant.conf \
49     -iwlan0 -Dnl80211 \
50     -O/data/misc/wifi/sockets \
51     -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
52     #   we will start as root and wpa_supplicant will switch to user wifi
53     #   after setting up the capabilities required for WEXT
54     #   user wifi
55     #   group wifi inet keystore
56     class main
57     socket wpa_wlan0 dgram 660 wifi wifi
58     disabled
59
60 service nativebridge /system/bin/enable_nativebridge
61     class main
62     disabled
63     oneshot
64     seclabel u:r:zygote:s0
65
66 service logcat /system/bin/logcat -b all -v threadtime -f /data/log.txt
67     class debug
68
69 service btattach /system/bin/btattach
70     class main
71     disabled
72     oneshot
73     seclabel u:r:bluetooth:s0
74
75 service rtk_hciattach /vendor/bin/rtk_hciattach -n -s 115200 /dev/rtk_h5 rtk_h5
76     class main
77     disabled
78     oneshot
79     seclabel u:r:bluetooth:s0
80
81 service wacom-input /system/bin/wacom-input
82     disabled
83     oneshot
84     seclabel u:r:inputflinger:s0
85
86 service tablet-mode /system/bin/tablet-mode
87     disabled
88     oneshot
89     seclabel u:r:inputflinger:s0
90
91 service ctrl-alt-del /system/bin/input keyevent --longpress POWER
92     disabled
93     oneshot
94     keycodes 97 100 111
95     seclabel u:r:init:s0
96
97 on property:system_init.startsurfaceflinger=0
98     # disable cursor blinking
99     write /dev/tty0 "\e[?17;0;0c"
100     start surfaceflinger
101     stop console
102
103 on property:sys.boot_completed=1
104     write /proc/sys/kernel/ctrl-alt-del 0
105     exec u:r:init:s0 -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh bootcomplete
106
107 on property:net.dns1=*
108     exec u:r:init:s0 -- /system/bin/logwrapper /system/bin/sh /system/etc/init.sh netconsole
109
110 on property:debug.logcat=1
111     class_start debug
112
113 on property:persist.sys.nativebridge=1
114     start nativebridge
115
116 on property:persist.sys.nativebridge=0
117     stop nativebridge