1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix interface name for omr-quota

This commit is contained in:
Ycarus 2018-12-12 21:30:43 +01:00
parent 6ce9bb2827
commit edff787f63
2 changed files with 4 additions and 5 deletions

View file

@ -18,7 +18,7 @@ _validate_section() {
_launch_quota() {
local txquota rxquota ttquota interval enabled interface
_validate_section "interface" "$1"
interface=$1
interface=$(ifstatus "$1" | jsonfilter -q -e '@["l3_device"]')
[ -z "$txquota" ] && [ -z "$rxquota" ] && [ -z "$ttquota" ] && return
[ "$enabled" = "0" ] && return