diff --git a/sbin/wlan_setup b/sbin/wlan_setup index 14e6367..f1db5fd 100755 --- a/sbin/wlan_setup +++ b/sbin/wlan_setup @@ -67,6 +67,9 @@ for AP in `iwlist $DEV scan 2>/dev/null|\ read <&3 OPTION ARG1 ARG2 while [ $OPTION ]; do case $OPTION in + WPA2|WPA) + wpa_supplicant -i wlan0 -D ${ARG1} -c /etc/sysconfig/wpa_supplicant/${AP} -B + ;; KEY) echo -n "Configuring Wireless Interface KEY" $DEBUG iwconfig $DEV key $ARG1 $ARG2