mirror of
https://github.com/LiBwrt/nss-packages.git
synced 2025-12-17 17:44:08 +00:00
nss-drv: Fix nss_diag formatting
Signed-off-by: Sean Khan <datapronix@protonmail.com>
This commit is contained in:
parent
7dd1aff674
commit
b7cdafdb67
@ -82,17 +82,18 @@ for i in wan br-lan /sys/class/net/br-lan/brif/*; do
|
|||||||
ethtool -k ${i} | awk -v count=$count -v i=$i -v white=$white -v green=$green -v r=$reset '
|
ethtool -k ${i} | awk -v count=$count -v i=$i -v white=$white -v green=$green -v r=$reset '
|
||||||
/rx-gro-list/ {
|
/rx-gro-list/ {
|
||||||
if(count>0) tab=" "
|
if(count>0) tab=" "
|
||||||
if($2=="on") color=green
|
color=red
|
||||||
|
if($2=="off") color=green
|
||||||
printf "%s%-11s : %s%s%s\n",tab,i,color,$2,r
|
printf "%s%-11s : %s%s%s\n",tab,i,color,$2,r
|
||||||
}'
|
}'
|
||||||
count=$((count + 1))
|
count=$((count + 1))
|
||||||
done
|
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 '
|
opkg list-installed | awk -v count=0 '
|
||||||
/kmod-qca-nss|^nss/ {
|
/kmod-qca-nss|^nss/ {
|
||||||
if(count>0) tab=" "
|
if(count>0) tab=" "
|
||||||
print tab $0
|
print tab $0
|
||||||
count++
|
count++
|
||||||
}'
|
}'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user