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
7
neofetch
7
neofetch
|
@ -39,7 +39,8 @@ get_os() {
|
|||
"SunOS") os="Solaris" ;;
|
||||
"Haiku") os="Haiku" ;;
|
||||
"MINIX") os="MINIX" ;;
|
||||
"AIX") os="AIX" ;;
|
||||
"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