Packages: Added support for AIX
This commit is contained in:
parent
a7842e7b75
commit
8eeffc3b8c
5
neofetch
5
neofetch
|
@ -508,6 +508,11 @@ get_packages() {
|
||||||
"Haiku")
|
"Haiku")
|
||||||
packages="$(ls -1 /boot/system/package-links | wc -l)"
|
packages="$(ls -1 /boot/system/package-links | wc -l)"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"AIX")
|
||||||
|
packages="$(lslpp -J -l -q | grep -cv '^#')"
|
||||||
|
packages="$((packages+=$(rpm -qa | wc -l)))"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
((packages == 0)) && unset packages
|
((packages == 0)) && unset packages
|
||||||
|
|
Reference in New Issue