Openwrt count packages
This commit is contained in:
parent
8250f5052a
commit
5e32fc6461
1 changed files with 3 additions and 0 deletions
3
neofetch
3
neofetch
|
@ -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)))"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue