2 # By Chih-Wei Huang <cwhuang@linux.org.tw>
3 # Last updated 2016/01/23
5 # License: GNU Public License
6 # We explicitely grant the right to use the scripts
7 # with Android-x86 project.
10 # An auto detect function provided by kinneko
14 echo 'dev2mod() { while read dev; do case $dev in' > $tmp
15 sort -r /lib/modules/`uname -r`/modules.alias | \
16 sed -n 's/^alias *\([^ ]*\) *\(.*\)/\1)modprobe \2;;/p' >> $tmp
17 echo 'esac; done; }' >> $tmp
18 sed -i '/brcmfmac/d' $tmp
20 cat /sys/bus/*/devices/*/modalias | dev2mod
21 cat /sys/devices/virtual/wmi/*/modalias | dev2mod
26 [ -x /sbin/v86d ] || ln -s ../android/sbin/v86d /sbin
27 [ -c /dev/fb0 ] || modprobe uvesafb mode_option=${UVESA_MODE:-800x600}-16 ${UVESA_OPTION:-mtrr=3 scroll=redraw}
32 if [ -n "$FOUND" ]; then
33 [ -n "$PREDEV" ] && modprobe $PREDEV
34 [ -n "$FB0DEV" -a -z "$UVESA_MODE" ] && modprobe $FB0DEV
35 [ -n "$LANDEV" ] && modprobe $LANDEV
36 [ -n "$WIFDEV" ] && modprobe $WIFDEV
37 [ -n "$SNDDEV" ] && modprobe $SNDDEV
38 [ -n "$CAMDEV" ] && modprobe $CAMDEV