-=| 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: [EMAIL PROTECTED]
signature.asc
Description: Digital signature
_______________________________________________ Debian-eeepc-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel
