Skip to content

Instantly share code, notes, and snippets.

@namchuai
Created August 7, 2019 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save namchuai/72d88e6fe0332abae2fe7896e04675f2 to your computer and use it in GitHub Desktop.
Save namchuai/72d88e6fe0332abae2fe7896e04675f2 to your computer and use it in GitHub Desktop.
Getting board id mac
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