I have a raspberry pi with 2 wireless adapters connected to it - one has an antenna. http://www.modmypi.com/raspberry-pi/accessories/wifi-dongles/wifi-dongle-ultra-long-range-high-gain-w-5dbi-antenna

I am trying to write a script that queries my linux box for wireless interfaces, finds out which one is the one which has the antenna connected and put it into hotspot mode. Tomorrow, it can be any other adapter with an antenna attached.

Are there any tools or commands that can help? Any entries in /proc or /sys that tell me this is the required device? Thanks in advance.


AFAIK, /sys/class/net/interface name holds the key. If there is a wireless directory contained in one of the interface name directories, then that is a wireless interface.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.