mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix enabled check
This commit is contained in:
parent
3a90415d07
commit
af4d5483fa
2 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@ _launch_quota() {
|
|||
interface=$1
|
||||
|
||||
[ -z "$txquota" ] && [ -z "$rxquota" ] && [ -z "$ttquota" ] && return
|
||||
[ $enabled = 0 ] && return
|
||||
[ "$enabled" = "0" ] && return
|
||||
|
||||
[ "$(uci get vnstat.@vnstat[-1].interface | grep $interface)" = "" ] && {
|
||||
uci -q batch <<-EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue