From f2ac4ffd8d7124835be8ee0fd83a603b7bc2678b Mon Sep 17 00:00:00 2001 From: Stefan Date: Sun, 7 Aug 2022 20:04:07 +0200 Subject: [PATCH] Better NetBSD memory and uptime Works better for non-root. --- pfetch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pfetch b/pfetch index d47b878..ab4e900 100755 --- a/pfetch +++ b/pfetch @@ -424,8 +424,8 @@ get_host() { ;; (NetBSD*) - host=$(sysctl -n machdep.dmi.system-vendor \ - machdep.dmi.system-product) + host=$(/sbin/sysctl -n machdep.dmi.system-vendor \ + machdep.dmi.system-product) ;; (OpenBSD*) @@ -485,7 +485,7 @@ get_uptime() { # converting that data into days, hours and minutes using simple # math. case $os in - (Linux* | Minix* | SerenityOS*) + (Linux* | Minix* | SerenityOS* | NetBSD*) IFS=. read -r s _ < /proc/uptime ;;