-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathinit.sun4i.rc
executable file
·95 lines (83 loc) · 2.61 KB
/
init.sun4i.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import init.sun4i.usb.rc
on early-init
export EXTERNAL_STORAGE /mnt/sdcard
mkdir /mnt/sdcard 0000 system system
# for backwards compatibility
symlink /mnt/sdcard /sdcard
mkdir /mnt/extsd 0000 system system
mkdir /mnt/usbhost1 0000 system system
on fs
mount ext4 /dev/block/nandd /system wait ro
mount ext4 /dev/block/nande /data wait noatime nosuid nodev
mount ext4 /dev/block/nandh /cache wait noatime nosuid nodev
on boot
# gpu drivers
insmod /system/lib/modules/ump.ko
insmod /system/lib/modules/mali.ko
# touchscreen drivers
insmod /system/lib/modules/ft5x_ts.ko
insmod /system/lib/modules/goodix_touch_3F.ko
insmod /system/lib/modules/goodix_touch.ko
insmod /system/lib/modules/gt801_2plus1.ko
insmod /system/lib/modules/ssd253x-ts.ko
insmod /system/lib/modules/Novatek_TouchDriver.ko
# gsensor drivers
insmod /system/lib/modules/bma250.ko
insmod /system/lib/modules/mecs.ko
insmod /system/lib/modules/mxc622x.ko
insmod /system/lib/modules/mma7660.ko
insmod /system/lib/modules/kxte9.ko
# camera drivers
insmod /system/lib/modules/videobuf-core.ko
insmod /system/lib/modules/videobuf-dma-contig.ko
insmod /system/lib/modules/gc0308.ko
insmod /system/lib/modules/gc0308b.ko
insmod /system/lib/modules/gc2015.ko
insmod /system/lib/modules/gt2005.ko
insmod /system/lib/modules/mt9m112.ko
insmod /system/lib/modules/ov5640.ko
insmod /system/lib/modules/gc0307.ko
insmod /system/lib/modules/sun4i_csi1.ko
insmod /system/lib/modules/sun4i_csi0.ko
# usb ethernet drivers
insmod /system/lib/modules/usbnet.ko
insmod /system/lib/modules/asix.ko
insmod /system/lib/modules/qf9700.ko
insmod /system/lib/modules/mcs7830.ko
insmod /system/lib/modules/rtl8150.ko
# misc
chown system system /sys/class/timed_output/sun4i-vibrator/enable
chown system system /sys/class/rfkill/rfkill0/state
chmod 0777 /sys/class/rfkill/rfkill0/state
write /sys/class/rfkill/rfkill0/state 0
on post-fs-data
mkdir /data/misc/sensors 0777 system system
service wpa_supplicant /system/bin/wpa_supplicant -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
socket wpa_wlan0 dgram 660 wifi wifi
group wifi inet
disabled
oneshot
service u3gmonitor /system/bin/u3gmonitor
class main
user root
group root
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
class main
disabled
oneshot
service dhcpcd_eth0 /system/bin/dhcpcd -ABKL
class main
disabled
oneshot
service iprenew_eth0 /system/bin/dhcpcd -n
class main
disabled
oneshot
service memsicd /system/bin/logwrapper /system/bin/memsicd
class troy
oneshot