OSDN Git Service

support internal storage
[android-x86/device-tegatech-tegav2.git] / tegav2_info
1 DMIPATH=/sys/class/dmi/id
2
3 tegav2_info()
4 {
5         board=`cat $DMIPATH/product_name`
6         case "$board" in
7                 TEGA*|Intel*|VPAD10*|X1*|PC*)
8                         ;;
9                 *)
10                         error WARNING: An unknown model
11                         ;;
12         esac
13
14         # FIXME: a workaround for the race condition of auto-probing
15         EXTMOD="$EXTMOD ath3k uvcvideo hid-multitouch"
16
17         return 1 # auto_detect
18 }
19
20 detect_hardware()
21 {
22         case "`cat $DMIPATH/uevent`" in
23                 *TEGA*|*Intel*|*VPAD10*|*azpen*|*AZPENPC*)
24                         ;;
25                 *)
26                         error WARNING: An unknown tablet
27                         ;;
28         esac
29
30         tegav2_info
31 }
32
33 post_detect()
34 {
35         board=`cat $DMIPATH/product_name`
36         case "$board" in
37                 X1*|PC*)
38                         echo 3 03eb 201c 1 > /sys/module/hid_multitouch/drivers/hid:hid-multitouch/new_id
39                         ;;
40                 *)
41                         ;;
42         esac
43 }