diff --git a/omr-quota/files/etc/init.d/omr-quota b/omr-quota/files/etc/init.d/omr-quota index 1b7cad1e2..4883fe645 100755 --- a/omr-quota/files/etc/init.d/omr-quota +++ b/omr-quota/files/etc/init.d/omr-quota @@ -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 diff --git a/omr-tracker/files/etc/init.d/omr-tracker b/omr-tracker/files/etc/init.d/omr-tracker index 984b17d80..6e00cf787 100755 --- a/omr-tracker/files/etc/init.d/omr-tracker +++ b/omr-tracker/files/etc/init.d/omr-tracker @@ -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