wok-current rev 1158

Install wpa_supplicant if necessary
author Pierre-Jean Fichet <sygne@ombres.eu>
date Sun Jul 27 15:21:55 2008 +0200 (2008-07-27)
parents 286e99ba6ccd
children ff8a1f3e8408
files get-wifi-firmware/stuff/get-wifi-firmware
line diff
     1.1 --- a/get-wifi-firmware/stuff/get-wifi-firmware	Sun Jul 27 10:49:08 2008 +0000
     1.2 +++ b/get-wifi-firmware/stuff/get-wifi-firmware	Sun Jul 27 15:21:55 2008 +0200
     1.3 @@ -104,6 +104,14 @@
     1.4  cd $TOP
     1.5  rm -rf $TMP
     1.6  
     1.7 +# Check if we need wpa_supplicant
     1.8 +. /etc/network.conf
     1.9 +if [ $WIFI_KEY_TYPE = "wpa" ] || [ $WIFI_KEY_TYPE = "WPA" ]; then
    1.10 +	if [ ! -d /var/lib/tazpkg/installed/wpa_supplicant ]; then
    1.11 +		tazpkg get-install wpa_supplicant
    1.12 +	fi
    1.13 +fi
    1.14 +
    1.15  # Load module
    1.16  echo "Loading module: $MODULE..."
    1.17  modprobe $MODULE