[PR] dylanaraps/neofetch#1588 from dvogit - FreeBSD Host Model Patch

Upstream PR: https://github.com/dylanaraps/neofetch/pull/1588
Thanks to @dvogit

Co-authored-by: Dvonik <dvogit@protonmail.com>
This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-08-11 22:20:53 -04:00
commit 3f4b5b2a1f

View file

@ -1545,7 +1545,11 @@ get_model() {
;; ;;
BSD|MINIX) BSD|MINIX)
if [[ $(uname -s) = "FreeBSD" ]]; then
model=$(kenv smbios.system.version)
else
model=$(sysctl -n hw.vendor hw.product) model=$(sysctl -n hw.vendor hw.product)
fi
;; ;;
Windows) Windows)