Created
August 7, 2019 15:32
-
-
Save namchuai/d1b7490c2d6285ef4b9618b06d39afbd to your computer and use it in GitHub Desktop.
Getting board id 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
Just paste the line to terminal. I'm not created the script. Just a note for me or someone when needed. | |
var_ID=$(ioreg -p IODeviceTree -r -n / -d 1 | grep board-id);var_ID=${var_ID##*<\"};var_ID=${var_ID%%\">};echo $var_ID\n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment