I'm developing an application in RealBASIC, but I need the list of interface names to populate a dropdown box.
Parsing ifconfig didn't work (got eth0
, eth1
, lo
, etc.). I need the name that is displayed in system preferences (Ethernet, Airport, etc.).
Is there a terminal command that I can parse?