Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fallback to device-tree when DMI informations are not available to fetch serial product #50

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

EdouardVanbelle
Copy link
Contributor

Please find a fallback to device-tree norm when DMI informations are not available

more details:

I only added informations on Product section, device-tree may be usable on other additional devices

Example on an old R-Pi device:
Before:

$ sudo ./sysinfo | jq -r .product
{
  "uuid": "00000000-0000-0000-0000-000000000000"
}

After:

$ sudo ./sysinfo | jq -r .product
{
  "name": "Raspberry Pi 3 Model B Rev 1.2",
  "serial": "00000000279****",
  "uuid": "00000000-0000-0000-0000-000000000000"
}

@zcalusic
Copy link
Owner

LGTM, thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants