Re: [debian-knoppix] enhancement for wlcardconfig ?
On Mon, Jan 12, 2004 at 10:57:38PM +0100, Florent BERANGER wrote:
> Hello everyone,
>
> some wireless cards, supported by Linux aren't detected by wlcardconfig in
> Knoppix.
> I made the following patch, applied into Flonix distro, in order to detect
> more devices :
>
> old :
> WLDEVICES=`grep -v "|" /proc/net/wireless | awk -F: '{print $1}'`
>
> new :
> iwconfig > $TMP
> WLDEVICES=`cat $TMP | grep 802.11 | awk -F" " '{print $1}'`
WLDEVICES="$(iwconfig 2>/dev/null | awk '/802\.11/{print $1}')"
looks more correct, plus saves you a temporary file. I have not tried
this yet, though. Is the output of iwconfig reliable? What about wlan-ng
devices?
Regards
-Klaus Knopper
_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix
Reply to: