2 # By Chih-Wei Huang <cwhuang@linux.org.tw>
3 # Last updated 2009/07/18
5 # License: GNU Public License
6 # We explicitely grant the right to use the scripts
7 # with Android-x86 project.
10 # TODO: implement a more generic auto detection by scanning /sys
11 # For now we just look up the machine name.
13 # FB0DEV: framebuffer driver
16 # SNDDEV: sound driver
17 # CAMDEV: camera driver
18 # PREDEV: any module the drivers depend on but can't be loaded automatically
22 board=`cat /sys/class/dmi/id/board_name`
23 # assume Eee PC models
44 # common for all Eee PC models
48 PREDEV=snd-hda-codec-realtek
54 SNDDEV="snd-sb16 isapnp=0 irq=5"
71 grep -q "$1" /sys/class/dmi/id/uevent
76 check_product ASUSTeK && get_asus_info
77 check_product VirtualBox && get_vbox_info
78 check_product QEMU && get_qemu_info
79 check_product VMware && get_vmware_info
88 [ -n "$FB0DEV" ] && modprobe $FB0DEV
89 [ -n "$LANDEV" ] && modprobe $LANDEV
90 [ -n "$WIFDEV" ] && modprobe $WIFDEV
91 [ -n "$SNDDEV" ] && modprobe $SNDDEV
92 [ -n "$CAMDEV" ] && modprobe $CAMDEV