OSDN Git Service

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