mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-13 12:12:12 +00:00
CPU [HP-UX]: Add partial support
This commit is contained in:
12
neofetch
12
neofetch
@@ -1022,6 +1022,18 @@ get_cpu() {
|
|||||||
# Get CPU cores.
|
# Get CPU cores.
|
||||||
cores="$(sysconf NPROC_ONLN)"
|
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
|
esac
|
||||||
|
|
||||||
if [[ "$speed" ]]; then
|
if [[ "$speed" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user