Skip to content

Conversation

@techflashYT
Copy link
Contributor

Some devices store their CPU name in hw.model, so this patch adds support for checking that as well before giving up. Tested on NetBSD 10.1 evbppc/wii, and allows it to detect the CPU as "750 (Revision 2.0)".

@techflashYT
Copy link
Contributor Author

techflashYT commented Jun 11, 2025

Oh yikes, my branch accidentally included some old Linux stuff I had lying around from last time, fixing that, one moment.

Edit: Should be fixed now (oops!)

Some devices store their CPU name in hw.model, so check that as well
before giving up.  Tested on NetBSD 10.1 evbppc/wii, and allows it to
detect the CPU as "750 (Revision 2.0)".
@CarterLi CarterLi requested a review from Copilot June 11, 2025 02:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR aims to improve CPU detection on NetBSD by adding a check for "hw.model" since some devices store their CPU name there.

  • Updated the conditional logic in the CPU detection function to include "hw.model".
  • Refined CPU information extraction for better support on NetBSD PPC systems.

@fastfetch-cli fastfetch-cli deleted a comment from Copilot AI Jun 11, 2025
@CarterLi CarterLi merged commit 1e32a95 into fastfetch-cli:dev Jun 11, 2025
19 checks passed
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