CPU [HP-UX]: Add partial support
This commit is contained in:
parent
5cb04eccce
commit
d233e5bb2e
1 changed files with 12 additions and 0 deletions
12
neofetch
12
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
|
||||
|
|
Loading…
Reference in a new issue