1
0
Fork 0
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:
Ycarus 2018-05-25 22:00:24 +02:00
parent 3a90415d07
commit af4d5483fa
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -46,7 +46,7 @@ _launch_tracker() {
config_get gateway "$1" gateway
[ -z "$ifname" ] || [ -z "$multipath" ] || [ "$multipath" = "off" ] && [ "$1" != "glorytun" ] && return
[ $enabled = 0 ] && return
[ "${enabled}" = "0" ] && return
procd_open_instance
# shellcheck disable=SC2086
@ -103,8 +103,8 @@ _launch_shadowsocks_tracker() {
local disabled
config_get disabled "$1" disabled 0
[ $enabled = 0 ] && return
[ $disabled = 1 ] && return
[ "$enabled" = "0" ] && return
[ "$disabled" = "1" ] && return
procd_open_instance
# shellcheck disable=SC2086