Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

FreeBSD Host Model Patch #1588

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

FreeBSD Host Model Patch #1588

wants to merge 2 commits into from

Conversation

dvogit
Copy link

@dvogit dvogit commented Oct 24, 2020

I noticed that my host model wasn't recognized so I made a patch taking advantage of the kenv command in FreeBSD.
The previous sysctl values used to get the host model were deprecated for a few years so I decided to update it.

@dvogit
Copy link
Author

dvogit commented Oct 24, 2020

Ignore commit e407d5b, I made that from 7.1.0 from ports. The commit ddd8dad is the same patch based on the latest commit as of writing.

Comment on lines +1319 to +1323
if [[ $(uname -s) = "FreeBSD" ]]; then
model=$(kenv smbios.system.version)
else
model=$(sysctl -n hw.vendor hw.product)
fi
Copy link
Owner

Choose a reason for hiding this comment

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

Look at other code in neofetch to see how to detect OS/Distro name. There are variables which can be used.

Choose a reason for hiding this comment

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

Look at other code in neofetch to see how to detect OS/Distro name. There are variables which can be used.

You could have just changed it to $kernel_name for them... or at least tell them that it should be $kernel_name. Not every contributor have time to read through like 13k lines of bash code

hykilpikonna added a commit to hykilpikonna/hyfetch that referenced this pull request Aug 12, 2022
hykilpikonna added a commit to hykilpikonna/hyfetch that referenced this pull request Aug 12, 2022
@hykilpikonna
Copy link

Thank you for your contribution!

This PR is merged into hyfetch since this repo (dylanaraps/neofetch) seems no longer maintained.

HyFetch is a fork of neofetch with LGBTQ pride flags, but the repo also maintains an updated version of the original neofetch, addressing many pull requests that are not merged in the original repo.

Read the "Running Updated Original Neofetch" section for more info!

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

Successfully merging this pull request may close these issues.

3 participants