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

Better quota and tracker interface

This commit is contained in:
Ycarus 2018-03-12 17:02:30 +01:00
parent 116dae3c40
commit 82e83780eb
5 changed files with 70 additions and 10 deletions

View file

@ -12,13 +12,13 @@ _validate_section() {
'rxquota:uinteger' \
'ttquota:uinteger' \
'interval:uinteger' \
'interface:string' \
'enabled:bool:0'
}
_launch_quota() {
local txquota rxquota ttquota interval enabled interface
_validate_section "interface" "$1"
interface=$1
[ -z "$txquota" ] && [ -z "$rxquota" ] && [ -z "$ttquota" ] && return
[ $enabled = 0 ] && return