OpenWrt 25.12+ uses apk instead of opkg, causing module detection to fail. Updated all package manager operations to support both: **Changes:** - check_module_installed(): Detect and use apk or opkg - detect_real_modules(): Parse both apk and opkg output formats - Version extraction: Use grep pattern matching for apk (portable) - get_status(): Count modules from UCI config instead of RPCD scripts **Detection Logic:** - Check /usr/bin/apk → use apk commands (OpenWrt 25.12+) - Check /bin/opkg or /usr/bin/opkg → use opkg (24.10 and earlier) - Fallback to config file existence check **Version Extraction:** - apk: Extract X.Y.Z from "luci-app-name-X.Y.Z-rN" format - opkg: Extract version from "package version" format **Module Counting:** - Now counts all modules from UCI config (14 total) - Correctly detects installed packages (2 installed) - Properly tracks running services (0 running) Tested on OpenWrt 25.12.0-rc1 with apk package manager. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| rpcd | ||
| secubox | ||