From 5e32fc646110ff718c0ce69de511d9b9429e7c21 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 26 Aug 2016 12:17:58 +1000 Subject: [PATCH] Openwrt count packages --- neofetch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neofetch b/neofetch index e85b9007..f8b9bf38 100755 --- a/neofetch +++ b/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)))"