On Mon, 2010-10-11 at 11:04 -0700, Ben Greear wrote: > I use this to determine the phy device for a particular network device: > > [root@dx-2u-ath5k lanforge]# cat /sys/class/net/wlan0/phy80211/name > wiphy0 What's wrong with basename $(readlink /sys/class/net/wlan0/phy80211) ? johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html