LRX21M.vC1O-0
[GitHub/mt8127/ttab-system.git] / ramdisk / factory_init.project.rc
1 mkdir /data/misc/sensors 0664 system system
2
3 on post-fs-data
4
5 on post-fs
6 #
7 # Connectivity related modules and character device nodes (Begin)
8 #
9 #for 662x_launcher
10 chmod 0660 /dev/ttyMT2
11 chown system system /dev/ttyMT2
12
13 # STP, SDIO, WMT, GPS, FM and BT Driver
14 # insmod /system/lib/modules/mtk_hif_sdio.ko
15 # insmod /system/lib/modules/mtk_stp_wmt.ko
16 # insmod /system/lib/modules/mtk_stp_uart.ko
17 # insmod /system/lib/modules/mtk_stp_gps.ko
18 # insmod /system/lib/modules/mtk_stp_bt.ko
19 # insmod /system/lib/modules/mtk_fm_drv.ko
20 # insmod /system/lib/modules/mtk_fm_priv.ko
21 # insmod /system/lib/modules/mtk_wmt_wifi.ko
22
23 insmod /system/lib/modules/mtk_wmt_detect.ko
24
25 # Create char device file for WMT, GPS, BT, FM, WIFI
26 mknod /dev/stpwmt c 190 0;
27 mknod /dev/stpgps c 191 0;
28 mknod /dev/stpbt c 192 0;
29 mknod /dev/fm c 193 0;
30 chmod 0660 /dev/stpwmt
31 chown system system /dev/stpwmt
32 chmod 0660 /dev/wmtdetect
33 chown system system /dev/wmtdetect
34
35 # FM Radio device, FIXME: this is not a proper way to set permissions
36 chmod 0666 /dev/fm
37
38 mknod /dev/wmtWifi c 153 0
39 chmod 0666 /dev/wmtWifi
40 chmod 0660 /dev/stpgps
41 chmod 0660 /dev/stpbt
42 chown bluetooth radio /dev/stpbt
43
44 # Load WiFi Driver
45 #insmod /system/lib/modules/wlan.ko
46
47 #
48 # Connectivity related modules and character device nodes (Ends)
49 #
50
51 on boot
52
53
54 #
55 # Connectivity related services (Begin)
56 #
57
58 service wmtLoader /system/bin/wmt_loader
59 user root
60 group root
61 oneshot
62
63 service conn_launcher /system/bin/6620_launcher -p /system/etc/firmware/
64 user system
65 group system
66
67
68 #
69 # Connectivity related services (End)
70 #
71