Packages: Added support for AIX

This commit is contained in:
Muhammad Herdiansyah 2017-01-09 21:42:12 +07:00
parent a7842e7b75
commit 8eeffc3b8c
1 changed files with 5 additions and 0 deletions

View File

@ -508,6 +508,11 @@ get_packages() {
"Haiku")
packages="$(ls -1 /boot/system/package-links | wc -l)"
;;
"AIX")
packages="$(lslpp -J -l -q | grep -cv '^#')"
packages="$((packages+=$(rpm -qa | wc -l)))"
;;
esac
((packages == 0)) && unset packages