diff --git a/screenfetch-dev b/screenfetch-dev index 1458de8..ae0c9d0 100755 --- a/screenfetch-dev +++ b/screenfetch-dev @@ -1031,7 +1031,9 @@ detectcpu () { else cpu="Unknown" fi - elif [[ "$distro" == "FreeBSD" || "$distro" == "DragonflyBSD" ]]; then + elif [ "$distro" == "FreeBSD" ]; then + cpu=$(dmesg | grep 'CPU:' | head -n 1 | sed -r 's/CPU: //' | sed -e 's/([^()]*)//g') + elif [ "$distro" == "DragonflyBSD" ]; then cpu=$(sysctl -n hw.model) elif [ "$distro" == "OpenBSD" ]; then cpu=$(sysctl -n hw.model | sed 's/@.*//')