Code: Select all
egrep ^[0123456789]
Code: Select all
egrep ^[0123456789]
....thx for the rappid reply. I will try the traditional network wizzard and see if that helps. I have looked around on this forum but didn't find any usefull info other than the posted linux driver. Will try the hardware forum if this doesn't work.....jemimah wrote:That driver is still "experimental," so you may be stuck waiting until a stable driver is developed.
If it's only the wpa-supplicant support that's flaky, you might find that the traditional network wizard works better for you.
You can try posting in the hardware forum and see if anyone else has had success with that card.
Code: Select all
# wpa_supplicant -h
wpa_supplicant v0.6.9
Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi> and contributors
This program is free software. You can distribute it and/or modify it
under the terms of the GNU General Public License version 2.
Alternatively, this software may be distributed under the terms of the
BSD license. See README and COPYING for more details.
This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/)
usage:
wpa_supplicant [-BddhKLqqstuvW] [-P<pid file>] [-g<global ctrl>] \
-i<ifname> -c<config file> [-C<ctrl>] [-D<driver>] [-p<driver_param>] \
[-b<br_ifname>] [-f<debug file>] \
[-N -i<ifname> -c<conf> [-C<ctrl>] [-D<driver>] \
[-p<driver_param>] [-b<br_ifname>] ...]
drivers:
wext = Linux wireless extensions (generic)
nl80211 = Linux nl80211/cfg80211
atmel = ATMEL AT76C5XXx (USB, PCMCIA)
wired = wpa_supplicant wired Ethernet driver
options:
-b = optional bridge interface name
-B = run daemon in the background
-c = Configuration file
-C = ctrl_interface parameter (only used if -c is not)
-i = interface name
-d = increase debugging verbosity (-dd even more)
-D = driver name (can be multiple drivers: nl80211,wext)
-f = log output to debug file instead of stdout
-g = global ctrl_interface
-K = include keys (passwords, etc.) in debug output
-s = log output to syslog instead of stdout
-t = include timestamp in debug messages
-h = show this help text
-L = show license (GPL and BSD)
-p = driver parameters
-P = PID file
-q = decrease debugging verbosity (-qq even less)
-u = enable DBus control interface
-v = show version
-W = wait for a control interface monitor before starting
-N = start describing new interface
example:
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
#
Code: Select all
#100227 choose default network tool...
NETCHOICE='other' #100304
DEFAULTCONNECT="`cat /usr/local/bin/defaultconnect | tail -n 1 | tr -s " " | cut -f 2 -d " "`"
[ "`grep 'gprs' /usr/local/bin/defaultconnect`" != "" ] && DEFAULTCONNECT='pgprs-connect'
[ "$DEFAULTCONNECT" = "gkdial" ] && DEFAULTCONNECT="pupdial" #for older pups.
case $DEFAULTCONNECT in
Pwireless2)
NETCHOICE='Pwireless2'
;;
net-setup.sh)
NETCHOICE='net-setup.sh'
;;
net_wiz_classic)
NETCHOICE='net_wiz_classic'
;;
sns)
NETCHOICE='sns'
;;
*) #try determine which tool was used to setup networking...
if [ -s /etc/simple_network_setup/connections ];then #100306
NETCHOICE='sns'
else
CHECKOLDWIZ="`ls -1 /etc/*[0-9]mode 2>/dev/null`" #ex: eth0mode, wlan0mode.
if [ "$CHECKOLDWIZ" != "" -a -d /usr/local/net_setup ];then
NETCHOICE='net_wiz_classic'
else
CHECKNEWWIZ="`ls -1 /etc/network-wizard/network/interfaces 2>/dev/null`"
if [ "$CHECKNEWWIZ" != "" ];then
NETCHOICE='net-setup.sh'
else
[ -f /usr/local/Pwireless2/interface ] && NETCHOICE='Pwireless2' #100304
fi
fi
fi
;;
esac
[ -f /etc/init.d/Pwireless2 ] && chmod 644 /etc/init.d/Pwireless2 #prevent jemimah's script from running. 100304 100513
Code: Select all
set -x
if [ -f /usr/local/Pwireless2/interface ];then echo true
else chmod 755 /etc/init.d/Pwireless2 2>/dev/null
exec /etc/init.d/Pwireless2
fi
. /usr/local/Pwireless2/config
WIFI_IF=`cat /usr/local/Pwireless2/interface`
[ -z $WIFI_IF ] && exit
gtrayicon --activate="/usr/local/Pwireless2/connect" --activate-icon=/usr/share/pixmaps/network-offline.png --deactivate="/usr/local/Pwireless2/disconnect" --deactivate-icon=/usr/share/pixmaps/network-transmit-receive.png --menu-file=/usr/local/Pwireless2/network.menu --tooltip='Click to connect or disconnect Pwireless2'&
$WPA_CLI -i $WIFI_IF status|grep COMPLETED
if [[ $? == 0 ]] ; then
sleep 1
killall -SIGCONT gtrayicon
$DHCPCD -n $WIFI_IF
exit
fi
pidof dhcpcd
if [[ $? != 0 ]] ; then
/usr/local/Pwireless2/start-dhcp
fi