I (Lucio Crusca) wrote: > Ok then. Why don't we put on the website a minimal script to bring up an > interface with zd1211rw? Seems to me that, if distro scripts cause a lot of > problems, we would make a lot of users happy... Here is my script (static ip):
----8x-------------- #!/bin/bash -x PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin WLESS_IF=`iwconfig 2>/dev/null | grep -i essid | grep -i 'zd1211' | tr '\t' ' ' | cut --delim=' ' -f1` if [ "$WLESS_IF" == "" ] ; then exit 1 fi ifconfig $WLESS_IF up iwconfig $WLESS_IF mode managed iwconfig $WLESS_IF rate 2Mb iwconfig $WLESS_IF essid "videokernel" ifconfig $WLESS_IF 192.168.1.22 netmask 255.255.255.0 route add default gw 192.168.1.1 dev $WLESS_IF wpa_supplicant -Bw -c /etc/wpa_supplicant/wpa_supplicant.conf -i$WLESS_IF ----------8x------------ Now I've just emptied /etc/network/interfaces (only "lo" defined there) and rebooted the Pundit. I'm going to run my script... here is the output: # ./wireless-up.sh + PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin ++ iwconfig ++ grep -i essid ++ grep -i zd1211 ++ tr '\t' ' ' ++ cut '--delim= ' -f1 + WLESS_IF=eth5 + '[' eth5 == '' ']' + ifconfig eth5 up SIOCSIFFLAGS: Connection timeout + iwconfig eth5 mode managed + iwconfig eth5 rate 2Mb + iwconfig eth5 essid videokernel + ifconfig eth5 192.168.1.22 netmask 255.255.255.0 SIOCSIFFLAGS: Cannot send after transport endpoint shutdown + route add default gw 192.168.1.1 dev eth5 SIOCADDRT: No such process + wpa_supplicant -Bw -c /etc/wpa_supplicant/wpa_supplicant.conf -ieth5 Please note that I've translated the two SIOCSIFFLAGS error messages but they were localized in my output. And here is the corresponding /var/log/kern.log May 7 18:09:50 Acaja-Tour kernel: zd1211rw 3-5:1.0: zd_mac_get_channel() channel 0 May 7 18:09:50 Acaja-Tour kernel: zd1211rw 3-5:1.0: iw_get_range() May 7 18:09:50 Acaja-Tour kernel: zd1211rw 3-5:1.0: zd_usb_enable_int() May 7 18:09:50 Acaja-Tour kernel: zd1211rw 3-5:1.0: zd_usb_enable_int() submit urb f4c65c40 May 7 18:09:50 Acaja-Tour kernel: zd1211rw 3-5:1.0: zd_chip_set_basic_rates_locked() ff0f May 7 18:09:51 Acaja-Tour kernel: zd1211rw 3-5:1.0: zd_usb_iowrite16v() error in usb_bulk_msg(). Error number -110 May 7 18:09:51 Acaja-Tour kernel: zd1211rw 3-5:1.0: _zd_iowrite32v_locked() error -110 in zd_usb_write16v May 7 18:09:51 Acaja-Tour kernel: zd1211rw 3-5:1.0: zd_usb_disable_int() urb f4c65c40 killed May 7 18:09:51 Acaja-Tour kernel: SoftMAC: Associate: Scanning for networks first. May 7 18:09:51 Acaja-Tour kernel: SoftMAC: Associate: failed to initiate scan. Is device up? May 7 18:09:51 Acaja-Tour kernel: zd1211rw 3-5:1.0: zd_usb_enable_int() May 7 18:09:51 Acaja-Tour kernel: zd1211rw 3-5:1.0: zd_usb_enable_int() submit urb f4c653c0 May 7 18:09:51 Acaja-Tour kernel: zd1211rw 3-5:1.0: zd_usb_enable_int() Couldn't submit urb. Error number -108 May 7 18:09:51 Acaja-Tour kernel: zd1211rw 3-5:1.0: zd_usb_enable_int() May 7 18:09:51 Acaja-Tour kernel: zd1211rw 3-5:1.0: zd_usb_enable_int() submit urb f4c652c0 May 7 18:09:51 Acaja-Tour kernel: zd1211rw 3-5:1.0: zd_usb_enable_int() Couldn't submit urb. Error number -108 May 7 18:09:51 Acaja-Tour kernel: zd1211rw 3-5:1.0: iw_get_range() I've forgotten to launch iwevent before my script but I guess this is enough. Why is "ifconfig eth5 up" failing? ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Zd1211-devs mailing list - http://zd1211.ath.cx/ Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs