ich mal mal hier ein eine thread auf bzgl W-Lan autoinstall.

aktuell hat impex diesen W-Lan Stick von Gigablue

unter HDMU mit sh4 läuft er als 8192cu

lt Windoof wird er unter foldender VId-Pid erkannt:
USB\VID_0bda&Pid_8178&Rev_0200
USB\Vid_0bda&Pid_8178

wlan-start aus der start.sh
Code:
startWlan() {
 if  [ ! "$debug" = 'off' ]; then
  echo $CMD ["$INPUT"] startWlan
 fi
 [ ! -f /etc/wlan.usbmap ] && rm -f /etc/wlan_module && return
 WLAN_MODULE=
 MEM=$IFS
 IFS=$'\012'
 WLAN_LOG=/var/log/wlan.log
 rm -R /var/run/wpa_supplicant*
 rm $WLAN_LOG
 touch $WLAN_LOG
 echo "searching wlan-module ..." | tee -a $WLAN_LOG
 USBIDS=`cat /proc/bus/usb/devices | grep ^P:`
if [ -f /etc/wlan_module ]; then
  WLAN_MODULE=`cat /etc/wlan_module | awk {'print $1'}`
  VID=`cat /etc/wlan_module | awk {'print $2'}`
  PID=`cat /etc/wlan_module | awk {'print $3'}`
 fi
 if [ -z $WLAN_MODULE ] || [ -z "`echo $USBIDS | grep $VID | grep $PID`" ]; then
  for i in $USBIDS; do
   VID=`echo $i | awk {'print $2'} | cut -d"=" -f2`
   PID=`echo $i | awk {'print $3'} | cut -d"=" -f2`
   WLAN_MODULE=
   for j in `cat /etc/wlan.usbmap`; do ####  eine Liste mit aktuellen wlan-sticks und deren VID/PID
   if [ `echo $j | awk {'print $3'}` == 0x$VID ] && [ `echo $j | awk {'print $4'}` == 0x$PID ]; then
     WLAN_MODULE=`echo $j | awk {'print $1'}`
     break
    fi
   done
   [ ! -z $WLAN_MODULE ] && break
  done
  [ ! -z $WLAN_MODULE ] && echo $WLAN_MODULE $VID $PID > /etc/wlan_module || rm -f /etc/wlan_module
 fi
 [ -z $WLAN_MODULE ] && echo "no applicable USB WLAN device found" | tee -a $WLAN_LOG && return
 IFS=$MEM
 echo "loading $WLAN_MODULE.ko" | tee -a $WLAN_LOG
 insmod /lib/modules/$WLAN_MODULE.ko
 sleep 1
 [ -z "`lsmod | grep $WLAN_MODULE`" ] && echo "could not load $WLAN_MODULE" | tee -a $WLAN_LOG && return
 sleep 1
 ifconfig eth1 0.0.0.0 up
 [ -z "`ifconfig | grep eth1`" ] && rmmod $WLAN_MODULE && echo "eth1 not ready" | tee -a $WLAN_LOG && return
 sleep 1
 if [ -z "`cat /var/etc/network/interfaces | grep 'auto eth1'`" ]; then
  echo "wlan interface eth1 not activated" | tee -a $WLAN_LOG
  python /var/etc/network/wlanscan.py
  ifconfig eth1 down
  return
 fi
 if [ ! -f /etc/wpa_supplicant.conf ]; then
  echo "wlan not yet configured" | tee -a $WLAN_LOG
  python /var/etc/network/wlanscan.py
  ifconfig eth1 down
  return
 fi
 AP_TRIES=20
 AP=`cat /etc/wpa_supplicant.conf | grep ssid | grep -v scan_ssid | cut -d"=" -f2`
 echo "starting wpa_supplicant ..." | tee -a $WLAN_LOG
 wpa_supplicant -B -i eth1 -P /var/run/wpa_supplicant.pid -D zydas -c /etc/wpa_supplicant.conf
 while [ $AP_TRIES -gt 0 ]; do
  AP_STATE=`wpa_cli -i eth1 -p /var/run/wpa_supplicant status | grep wpa_state | cut -d"=" -f2`
  [ "$AP_STATE" == "COMPLETED" ] && echo "association with $AP completed" | tee -a $WLAN_LOG && break
  AP_TRIES=$((AP_TRIES-1))
  sleep 1
 done
 if [ $AP_TRIES -lt 1 ]; then
  case "$AP_STATE" in
   "SCANNING"  ) echo -e "access point $AP not found (scanning aborted...)" | tee -a $WLAN_LOG
   ;;
   *           ) echo -e "authentification to access point $AP failed" | tee -a $WLAN_LOG
   ;;
  esac
  python /var/etc/network/wlanscan.py
  kill -9 `cat /var/run/wpa_supplicant.pid`
  rm /var/run/wpa_supplicant.pid
  ifconfig eth1 down
  return
 fi
 python /var/etc/network/wlanscan.py
 ETH0IP=`ifconfig eth0 | grep -m1 "inet addr" | sed s/"^\s*"// | sed s/" \+"/" "/g | cut -d " " -f2 | cut -d ":" -f2`
 [ -z $ETH0IP ] && ETH0IP="0.0.0.0"
 ifconfig eth0 0.0.0.0
 ( startNet eth1
   ifconfig eth0 $ETH0IP
   IP=`ifconfig eth1 | grep -m1 "inet addr" | sed s/"^\s*"// | sed s/" \+"/" "/g | cut -d " " -f2 | cut -d ":" -f2`
   NET=`echo ${IP%.*}`
   ( fping -l -b12 -q -i2000 -g $NET.1 $NET.254 2> /dev/null ) & ) &
 }


hier mal eine alte wlan-liste
Code:
# usb module         match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info
# - Zydas ZD1211 - #
zd1211               0x0003      0x0ace   0x1211    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x0ace   0xa211    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x0586   0x3401    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x0586   0x3402    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x6891   0xa727    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x2019   0xc008    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x2019   0xc009    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x079b   0x004a    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x07b8   0x6001    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x0b3b   0x1630    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x0b3b   0x5630    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x0b3b   0x6630    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x0cde   0x0011    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x0df6   0x9071    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x126f   0xa006    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x129b   0x1666    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x1435   0x0711    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x0df6   0x9071    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211               0x0003      0x0105   0x145f    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x0ace   0x1215    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x0ace   0xa215    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x0053   0x5301    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x0053   0x5302    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x2019   0x5303    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x050d   0x4050    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x050d   0x705c    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x0586   0x340f    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x0586   0x3410    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x0586   0x3412    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x079b   0x0062    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x083a   0x4505    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x083a   0xe501    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x0baf   0x0121    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x0cde   0x001a    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x0df6   0x9075    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x0f88   0x3014    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x1233   0x0471    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x129b   0x1667    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
zd1211b              0x0003      0x1582   0x6003    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
# - Ralink RT73 - #
rt73                 0x0003      0x148f   0x2573    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x148f   0x2671    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x04bb   0x093d    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x18e8   0x6196    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x18e8   0x6229    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x18e8   0x6238    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x1044   0x8008    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x14b2   0x3c22    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x0db0   0x6877    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x0db0   0xa874    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x0db0   0xa861    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x07b8   0xb21d    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x0769   0x31f3    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x1472   0x0009    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x1371   0x9022    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x1371   0x9032    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x1631   0xc019    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x1044   0x800a    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x1690   0x0722    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x0df6   0x9712    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x0df6   0x90ac    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x148f   0x9021    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x0eb0   0x9021    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x0411   0x00d8    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x0586   0x3415    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x0b05   0x1723    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x0b05   0x1724    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x050d   0x705a    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x07d1   0x3c03    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x07d1   0x3c07    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x13b1   0x0023    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0
rt73                 0x0003      0x13b1   0x0020    0x0000       0x0000       0x00         0x00            0x00            0x00            0x00               0x00               0x0