Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2011 08:33:27 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        wireless@freebsd.org
Subject:   Detecting a wireless interface
Message-ID:  <alpine.BSF.2.00.1110120817150.31491@wonkity.com>

next in thread | raw e-mail | index | archive | help
sysctl dev.ath.0 has lots of things that are suggestive about 
an interface being wireless (txantenna), but 
nothing definitive.

ifconfig ath0 | egrep 'media:.*Wireless' is inelegant.

Is there a better way to detect that an interface is wireless or wired 
from a shell script?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1110120817150.31491>