Skip to content

Commit

Permalink
[PR] dylanaraps#1588 from dvogit - FreeBSD Host Model Patch
Browse files Browse the repository at this point in the history
Upstream PR: dylanaraps#1588
Thanks to @dvogit

Co-authored-by: Dvonik <[email protected]>
  • Loading branch information
hykilpikonna and dvogit committed Aug 12, 2022
2 parents 1d9fac6 + ddd8dad commit 3f4b5b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,11 @@ get_model() {
;;

BSD|MINIX)
model=$(sysctl -n hw.vendor hw.product)
if [[ $(uname -s) = "FreeBSD" ]]; then
model=$(kenv smbios.system.version)
else
model=$(sysctl -n hw.vendor hw.product)
fi
;;

Windows)
Expand Down

0 comments on commit 3f4b5b2

Please sign in to comment.