mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-01-02 16:02:12 +01:00
openbsd: Show host correctly
This commit is contained in:
6
pfetch
6
pfetch
@@ -274,7 +274,7 @@ get_os() {
|
||||
IFS='(' read -r distro _ < /etc/release
|
||||
;;
|
||||
|
||||
OpenBSD)
|
||||
OpenBSD*)
|
||||
# Show the OpenBSD version type (current if present).
|
||||
# kern.version=OpenBSD 6.6-current (GENERIC.MP) ...
|
||||
IFS=' =' read -r _ distro openbsd_ver _ <<-EOF
|
||||
@@ -327,6 +327,10 @@ get_host() {
|
||||
machdep.dmi.system-product)
|
||||
;;
|
||||
|
||||
OpenBSD*)
|
||||
host=$(sysctl -n hw.version)
|
||||
;;
|
||||
|
||||
*BSD*|Minix)
|
||||
host=$(sysctl -n hw.vendor hw.product)
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user