From d233e5bb2eac4108fe78b441c1830f46f1c77c9e Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Tue, 4 Jul 2017 19:29:51 +0700 Subject: [PATCH] CPU [HP-UX]: Add partial support --- neofetch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/neofetch b/neofetch index 0eaa8ee5..671eb7ea 100755 --- a/neofetch +++ b/neofetch @@ -1022,6 +1022,18 @@ get_cpu() { # Get CPU cores. cores="$(sysconf NPROC_ONLN)" ;; + + "HP-UX") + # Get CPU name. + # This will be partial for now, because apparently hppa and + # IA64 has different approaches of how it should be handled. + + # Get CPU speed. + # Same reasons as above. + + # Get CPU cores. + cores="$(ioscan -k | grep -c "processor")" + ;; esac if [[ "$speed" ]]; then