Created
May 30, 2020 17:20
-
-
Save sdwilsh/50fd0f8c90ddaa4de99ea0a234e7787d to your computer and use it in GitHub Desktop.
Get the MAC Address of the Pi
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
echo "PI_MAC=$(ifconfig eth0 | awk '/ether/{ print $2;}' | tr ':' '-')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment