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 ;;