OS: Add initial support for HP-UX
This commit is contained in:
parent
bfec8bad1b
commit
9a7b4c3871
1 changed files with 6 additions and 1 deletions
5
neofetch
5
neofetch
|
@ -40,6 +40,7 @@ get_os() {
|
|||
"Haiku") os="Haiku" ;;
|
||||
"MINIX") os="MINIX" ;;
|
||||
"AIX") os="AIX" ;;
|
||||
"HP-UX") os="HP-UX" ;;
|
||||
*)
|
||||
printf "%s\n" "Unknown OS detected: '$kernel_name', aborting..." >&2
|
||||
printf "%s\n" "Open an issue on GitHub to add support for your OS." >&2
|
||||
|
@ -193,6 +194,10 @@ get_distro() {
|
|||
"AIX")
|
||||
distro="AIX $(oslevel)"
|
||||
;;
|
||||
|
||||
"HP-UX")
|
||||
distro="HP-UX $kernel_version"
|
||||
;;
|
||||
esac
|
||||
|
||||
[[ -z "$distro" ]] && distro="$os (Unknown)"
|
||||
|
|
Loading…
Reference in a new issue