OS: Add initial support for HP-UX

This commit is contained in:
Dylan Araps 2017-01-19 13:59:20 +11:00
parent bfec8bad1b
commit 9a7b4c3871

View file

@ -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)"