mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix vnstat ubus
This commit is contained in:
parent
0bdfb41e88
commit
4a6693ed80
1 changed files with 6 additions and 4 deletions
|
@ -14,12 +14,14 @@ case "$1" in
|
|||
;;
|
||||
speedallif)
|
||||
echo '{'
|
||||
for IFPATH in /var/lib/vnstat/*
|
||||
for IFPATH in $(multipath | awk '/default/ {print $1}')
|
||||
do
|
||||
IFNAME=$(basename -- "$IFPATH")
|
||||
echo '"'$IFNAME'": '
|
||||
vnstat -i $IFNAME --json -tr
|
||||
echo ','
|
||||
[ -n "$IFNAME" ] && {
|
||||
echo '"'$IFNAME'": '
|
||||
vnstat -i $IFNAME --json -tr
|
||||
echo ','
|
||||
}
|
||||
done
|
||||
echo '}'
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue