unable to connect desktop to wifi
modified network.conf to reflect actual network values
script follows (thanks to @mojo):
#!/bin/sh
#
modprobe -l | grep -i zd1211rw
lsmod | grep -i zd1211rw
cp /media/USB-12-10/sys/t2642/network.conf /etc/
modprobe -r zd1211rw
modprobe zd1211rw
. /etc/init.d/network.sh stop
. /etc/init.d/network.sh start
------------------------------------------------
output from running script, WEP KEY removed
+ grep -i zd1211rw
+ modprobe -l
/lib/modules/2.6.37-slitaz/kernel/drivers/net/wireless/zd1211rw/zd1211rw.ko.gz
+ grep -i zd1211rw
+ lsmod
zd1211rw 33317 0
mac80211 145388 1 zd1211rw
cfg80211 99896 2 zd1211rw,mac80211
+ cp /media/USB-12-10/sys/t2642/network.conf /etc/
+ modprobe -r zd1211rw
+ modprobe zd1211rw
+ . /etc/init.d/network.sh stop
+ . /etc/init.d/rc.functions
+ [ -z ]
+ . /etc/network.conf
+ INTERFACE=wlan0
+ DHCP=yes
+ STATIC=no
+ IP=192.168.0.6
+ NETMASK=255.255.255.0
+ GATEWAY=192.168.0.1
+ DNS_SERVER=192.168.0.1
+ WIFI=yes
+ WIFI_INTERFACE=wlan0
+ WIFI_ESSID=398VC
+ WIFI_MODE=managed
+ WIFI_KEY=WEPKEYHERE
+ WIFI_KEY_TYPE=wep
+ WPA_DRIVER=
+ WIFI_CHANNEL=
+ WIFI_IWCONFIG_ARGS=
+ [ -z stop ]
+ Stop
+ echo Stopping all interfaces
Stopping all interfaces
+ ifconfig wlan0 down
+ ifconfig wlan0 down
+ echo Killing all daemons
Killing all daemons
+ killall udhcpc
killall: udhcpc: no process killed
+ killall wpa_supplicant
+ fgrep -q Tx-Power
+ iwconfig wlan0
+ echo Shutting down wifi card
Shutting down wifi card
+ iwconfig wlan0 txpower off
+ . /etc/init.d/network.sh start
+ . /etc/init.d/rc.functions
+ [ -z ]
+ . /etc/network.conf
+ INTERFACE=wlan0
+ DHCP=yes
+ STATIC=no
+ IP=192.168.0.6
+ NETMASK=255.255.255.0
+ GATEWAY=192.168.0.1
+ DNS_SERVER=192.168.0.1
+ WIFI=yes
+ WIFI_INTERFACE=wlan0
+ WIFI_ESSID=398VC
+ WIFI_MODE=managed
+ WIFI_KEY=WEPKEYHERE
+ WIFI_KEY_TYPE=wep
+ WPA_DRIVER=
+ WIFI_CHANNEL=
+ WIFI_IWCONFIG_ARGS=
+ [ -z start ]
+ Start
+ eth
+ ifconfig wlan0 up
ifconfig: SIOCSIFFLAGS: Operation not possible due to RF-kill
+ wifi
+ [ yes = yes ]
+ ifconfig wlan0 down
+ [ ! -d /sys/class/net/wlan0/wireless ]
+ echo -n Configuring wlan0...
Configuring wlan0...+ ifconfig wlan0 up
+ fgrep -q Tx-Power
+ iwconfig wlan0
+ iwconfig wlan0 txpower on
+ status
+ echo -en 33[70G[[70G[ + [ 0 = 0 ]
+ echo -en 33[1;32mOK[1;32mOK+ echo -e 33[0;39m ][0;39m ]
+ [ -n ]
+ WPA_DRIVER=wext
+ IWCONFIG_ARGS=
+ [ -n managed ]
+ IWCONFIG_ARGS= mode managed
+ [ -n ]
+ [ WEPKEYHERE == -o wep == none ]
+ [ -n WEPKEYHERE ]
+ cat /etc/wpa_supplicant.conf
+ cat
+ echo Starting wpa_supplicant for NONE/WEP...
Starting wpa_supplicant for NONE/WEP...
+ wpa_supplicant -B -W -c/tmp/wpa.conf -Dwext -iwlan0
Could not set interface wlan0 flags: No such file or directory
Failed to initialize driver interface
+ rm -f /tmp/wpa.conf
+ INTERFACE=wlan0
+ dhcp
+ [ yes = yes ]
+ echo Starting udhcpc client on: wlan0...
Starting udhcpc client on: wlan0...
+ [ -d /var/run/wpa_supplicant ]
+ /sbin/udhcpc -b -T 1 -A 12 -i wlan0 -p /var/run/udhcpc.wlan0.pid
udhcpc (v1.18.4) started
ifconfig: SIOCSIFFLAGS: No such file or directory
Sending discover...
udhcpc: sendto: Network is down
Read error: Network is down, reopening socket
Sending discover...
udhcpc: sendto: Network is down
Read error: Network is down, reopening socket
Sending discover...
udhcpc: sendto: Network is down
Read error: Network is down, reopening socket
No lease, forking to background
+ static_ip
+ [ no = yes ]
+ [ -f /etc/lxpanel/default/panels/panel ]
+ sed -i s/iface=.*/iface=wlan0/ /etc/lxpanel/default/panels/pane