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:
parent
116dae3c40
commit
82e83780eb
5 changed files with 70 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue