Skip to content

Instantly share code, notes, and snippets.

@hridaydutta123
Created July 5, 2017 10:31
Show Gist options
  • Save hridaydutta123/74cfd5d021611179a1a27fb687e57e63 to your computer and use it in GitHub Desktop.
Save hridaydutta123/74cfd5d021611179a1a27fb687e57e63 to your computer and use it in GitHub Desktop.
SHELL SCRIPT TO GENERATE HOTSPOT WITH MAC-ID
# Get the MAC id of the interface
MAC=`cat /sys/class/net/wlan0/address`
# Print the MAC ID without colon
echo "$MAC" | tr -d :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment