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