mirror of
https://github.com/optim-enterprises-bv/openwrt-ipq.git
synced 2025-10-29 17:33:01 +00:00
ath11k_nss: nss_diag: check for opkg/apk
Signed-off-by: Sean Khan <datapronix@protonmail.com>
This commit is contained in:
@@ -73,8 +73,21 @@ done
|
|||||||
|
|
||||||
echo -e "${reset}"
|
echo -e "${reset}"
|
||||||
echo -ne "${bold}${red} NSS PKGS${reset}: ${white}"
|
echo -ne "${bold}${red} NSS PKGS${reset}: ${white}"
|
||||||
opkg list-installed | awk -v count=0 '
|
|
||||||
/kmod-qca-nss|^nss/ {
|
if cmd=$(command -v apk) > /dev/null; then
|
||||||
|
flags="list -I"
|
||||||
|
else
|
||||||
|
cmd=$(command -v opkg)
|
||||||
|
flags="list-installed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$cmd" ]; then
|
||||||
|
echo -e "${red}No package manager found${reset}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
$cmd $flags | awk -v count=0 '
|
||||||
|
/kmod-qca|^nss/ {
|
||||||
if(count>0) tab=" "
|
if(count>0) tab=" "
|
||||||
print tab $0
|
print tab $0
|
||||||
count++
|
count++
|
||||||
|
|||||||
Reference in New Issue
Block a user