mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 04:22:32 +00:00
cpu: Use sysctl on NetBSD. Closes #1041
This commit is contained in:
5
neofetch
5
neofetch
@@ -1722,11 +1722,6 @@ get_wm_theme() {
|
||||
}
|
||||
|
||||
get_cpu() {
|
||||
# NetBSD emulates the Linux /proc filesystem instead of using sysctl for hw
|
||||
# information so we have to use this block below which temporarily sets the
|
||||
# OS to "Linux" for the duration of this function.
|
||||
[[ "$distro" == "NetBSD"* ]] && local os="Linux"
|
||||
|
||||
case "$os" in
|
||||
"Linux" | "MINIX" | "Windows")
|
||||
# Get CPU name.
|
||||
|
||||
Reference in New Issue
Block a user