Package: ifupdown Hi,
I wrote a wifi map script to map available ap/essid to logical interfaces. I thought it maybe useful to others, and that mailing through bugs is preferable to the maintainer then mailing them directly. eg: mapping eth1 script ..../get-wifi.sh map 00:11:22:33:44:55 eth1-here map 66:77:88:99:AA:BB eth1-there or with essid map mywifi eth1-mywifi then you can just ifup eth1 ofcourse some use things like whereami, but in some case thats overkill. And i don't like autodetect and almost every thing can be configured from interfaces Reguards Thorben Script: #!/bin/sh # Uncomment which ever method you prefere. ## Match based on ap Mac more secure (can hide essid, avoid twins) wlist=$(iwlist $1 scan | sed -e '/Address/! d' -e 's/[ \t]*Address: \(.*\)/\1/') ## Match based on essid more easier? (ap essid can't be hidden) #wlist=$(iwlist $1 scan | sed -e '/ESSID/! d' -e 's/[ \t]*ESSID:"\(.*\)"/\1/') while read wifi iface; do if echo $wlist | sed -n -e "/$wifi/ q 0" -e "/$wifi/! q 1"; then echo $iface; exit 0; fi done exit 1 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]