1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2019-09-05 19:58:47 +02:00
parent 0bdfb41e88
commit 4a6693ed80

View file

@ -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")
[ -n "$IFNAME" ] && {
echo '"'$IFNAME'": '
vnstat -i $IFNAME --json -tr
echo ','
}
done
echo '}'
;;