Created
September 2, 2015 10:19
-
-
Save scandox/3aff84ca0ec48d0c22f9 to your computer and use it in GitHub Desktop.
Get PI Serial and MAC
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
#!/bin/bash | |
SERIAL=`/bin/grep Serial /proc/cpuinfo | /usr/bin/awk '{print $3}'` | |
MAC=`/bin/ip link show eth0 | /usr/bin/awk '/ether/ {print $2}'` | |
echo $MAC > pi-info.txt | |
echo $SERIAL >> pi-info.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment