Skip to content

Commit 7c50ba3

Browse files
darkgeekThatOneCalculator
authored andcommitted
feat: opkg (openwrt) support
1 parent 212193f commit 7c50ba3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ curl -fsSL https://raw.githubusercontent.com/ThatOneCalculator/NerdFetch/main/ne
121121
- FreeBSD
122122
- OpenBSD
123123
- NetBSD
124+
- OpenWrt
124125

125126
### Known issue(s)
126127

nerdfetch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ esac
186186

187187
## PACKAGE MANAGER AND PACKAGES DETECTION
188188

189-
MANAGER=$(which nix-env pkg flatpak yum zypper dnf rpm dpkg-query brew port pacman xbps-query emerge cave apk kiss pmm /usr/sbin/slackpkg bulge birb yay paru pacstall cpm pmm eopkg getprop 2>/dev/null)
189+
MANAGER=$(which nix-env pkg flatpak yum zypper dnf rpm dpkg-query brew port pacman xbps-query emerge cave apk kiss pmm /usr/sbin/slackpkg bulge birb yay paru pacstall cpm pmm opkg eopkg getprop 2>/dev/null)
190190
manager=$(basename "$MANAGER")
191191
if [ $distrotype = netbsd ]; then
192192
manager="pkg_info-netbsd"
@@ -213,6 +213,7 @@ xbps-query) packages="$(xbps-query -l | wc -l)" ;;
213213
nix-env) packages="$(nix-store -q --requisites /run/current-system/sw | wc -l)" ;;
214214
apk) packages="$(apk list --installed | wc -l)" ;;
215215
pmm) packages="$(/bedrock/libexec/pmm pacman pmm -Q 2>/dev/null | wc -l)" ;;
216+
opkg) packages="$(opkg list-installed | wc -l)" ;;
216217
eopkg) packages="$(eopkg li | wc -l)" ;;
217218
/usr/sbin/slackpkg) packages="$(ls /var/log/packages | wc -l)" ;;
218219
bulge) packages="$(bulge list | wc -l)" ;;

0 commit comments

Comments
 (0)