os: Fix HAIKU issues

This commit is contained in:
Dylan Araps 2019-05-06 19:48:13 +03:00
parent 0f80628b4c
commit de99d9b0e4
1 changed files with 7 additions and 0 deletions

View File

@ -1189,6 +1189,12 @@ get_kernel() {
# Since these OS are integrated systems, it's better to skip this function altogether # Since these OS are integrated systems, it's better to skip this function altogether
[[ "$os" =~ (AIX|IRIX) ]] && return [[ "$os" =~ (AIX|IRIX) ]] && return
# Haiku uses 'uname -v' and not - 'uname -r'.
[[ "$os" == HAIKU ]] && {
kernel=$(uname -v)
return
}
case "$kernel_shorthand" in case "$kernel_shorthand" in
"on") kernel="$kernel_version" ;; "on") kernel="$kernel_version" ;;
"off") kernel="$kernel_name $kernel_version" ;; "off") kernel="$kernel_name $kernel_version" ;;
@ -1413,6 +1419,7 @@ get_packages() {
"Haiku") "Haiku")
has "pkgman" && dir /boot/system/package-links/* has "pkgman" && dir /boot/system/package-links/*
packages=${packages/pkgman/depot}
;; ;;
"IRIX") "IRIX")