mirror of
https://github.com/qosmio/nss-packages.git
synced 2025-12-16 16:21:53 +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 '
|
||||
/rx-gro-list/ {
|
||||
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
|
||||
}'
|
||||
count=$((count + 1))
|
||||
done
|
||||
|
||||
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(count>0) tab=" "
|
||||
if(count>0) tab=" "
|
||||
print tab $0
|
||||
count++
|
||||
}'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user