Commit 22df76c3 authored by Dylan Araps's avatar Dylan Araps

cpu: Use sysctl on NetBSD. Closes #1041

parent 497b782e
...@@ -1722,11 +1722,6 @@ get_wm_theme() { ...@@ -1722,11 +1722,6 @@ get_wm_theme() {
} }
get_cpu() { 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 case "$os" in
"Linux" | "MINIX" | "Windows") "Linux" | "MINIX" | "Windows")
# Get CPU name. # Get CPU name.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment