Skip to content

Instantly share code, notes, and snippets.

View akpoff's full-sized avatar

Aaron Poffenberger akpoff

View GitHub Profile
@akpoff
akpoff / wlan_status
Created April 18, 2016 16:10
Get the nwid of the specified wlan card or the first found
#!/bin/sh
nic="$1"
function getNwid {
ifconfig $1 | grep ieee80211 | cut -d : -f 2 | rev | cut -d ' ' -f 5- | rev | cut -d ' ' -f 3- | tr -d '"'
}
if [ ${nic:-empty} = empty ]
then