mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 01:00:17 +00:00
Openwrt count packages
This commit is contained in:
3
neofetch
3
neofetch
@@ -278,6 +278,9 @@ getpackages() {
|
||||
type -p apk >/dev/null 2>&1 && \
|
||||
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 && \
|
||||
packages="$((packages+=$(pacman-g2 -Q | wc -l)))"
|
||||
|
||||
|
Reference in New Issue
Block a user