[Debian-eeepc-devel] Wireless OSD display on 901+ models

Damyan Ivanov dmn at debian.org
Mon Aug 18 05:26:10 UTC 2008

-=| Ben Armstrong, Sun, Aug 17, 2008 at 12:47:23PM -0300 |=-
> What about this to determine the wireless interface instead:

Oh, I pushed a shared functions.sh implementation before looking for 
replies :/

> WLAN_IF=`iwconfig 2>/dev/null|cut -d' ' -f1`

Actually, in hotkey.sh we only need to see if the wireless is enabled, 
i.e. whether there is a wireless interface available at all, not its 
name. so perhaps something along the lines of 

    if [ -n "`iwconfig | grep -v '^$' | grep -v 'no wireless extensions'`" ]

but I am not sure this is much more elegant either. iwconfig(1) talks 
about /proc/net/wireless itself so we may as well stick to the source 
of the information :)

dam            JabberID: dam at jabber.minus273.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20080818/c35f54e6/attachment.pgp 

More information about the Debian-eeepc-devel mailing list