Created
July 5, 2017 10:31
-
-
Save hridaydutta123/74cfd5d021611179a1a27fb687e57e63 to your computer and use it in GitHub Desktop.
SHELL SCRIPT TO GENERATE HOTSPOT WITH MAC-ID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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