Openwrt count packages

This commit is contained in:
Dylan Araps 2016-08-26 12:17:58 +10:00
parent 8250f5052a
commit 5e32fc6461

View file

@ -278,6 +278,9 @@ getpackages() {
type -p apk >/dev/null 2>&1 && \ type -p apk >/dev/null 2>&1 && \
packages="$((packages+=$(apk info | wc -l)))" packages="$((packages+=$(apk info | wc -l)))"
type -p opkg >/dev/null 2>&1 && \
packages="$((packages+=$(opkg list-installed | wc -l)))"
type -p pacman-g2 >/dev/null 2>&1 && \ type -p pacman-g2 >/dev/null 2>&1 && \
packages="$((packages+=$(pacman-g2 -Q | wc -l)))" packages="$((packages+=$(pacman-g2 -Q | wc -l)))"