mikebeaton / myboard

A macOS command line tool to lookup your system's board id or board name, and to forward or reverse lookup any Mac board id or board name.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MyBoard

Clone a copy of this project with git and then run ./install.sh inside this repo (feel free to read and check the contents!).

This clones a copy of the required OpenCore Mac model database files into a .gitgnored subdirectory of your copy of this repo, and also symlinks this tool as a command called myboard, available from anywhere.

A matching uninstaller ./uninstall.sh will remove the downloaded OC files and delete the myboard symlink.

You can also run ./myboard.sh immediately from inside this repo without running ./install.sh first, though this requires that this project has been cloned into the same parent directory as an existing copy of Acidanthera's OpenCorePkg, so that it can find the OpenCore files that way instead.

Usage

  myboard
    Detect installed board id, lookup corresponding product name

  myboard -n
    Detect installed product name, lookup corresponding board id

  myboard {id-text}
    Case insensitive lookup all or part of any board id or product name

Examples

On a MacBookPro10,2 hybridized (changed board-id only) using OpenCore to a MacBookPro11,1:

$ myboard
detected board-id: "Mac-189A3D4F975D5FFC"
SystemProductName: "MacBookPro11,1"
$ myboard -n
detected product-name: "MacBookPro10,2"
BoardProduct: "Mac-AFD8A9D944EA4843"

Also quick, case-insensitive lookups of anything šŸ„³:

$ myboard iMac15,1
BoardProduct: "Mac-42FD25EABCABB274"
SystemProductName: "iMac15,1"
$ myboard 42fd25
BoardProduct: "Mac-42FD25EABCABB274"
SystemProductName: "iMac15,1"

About

A macOS command line tool to lookup your system's board id or board name, and to forward or reverse lookup any Mac board id or board name.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Shell 100.0%