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

Support alias interfaces

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-02-15 19:55:07 +01:00
parent 35f7ce04de
commit 56e032152d
7 changed files with 19 additions and 0 deletions

View file

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