relayd: prevent start for disabled interfaces
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44099
This commit is contained in:
parent
ea638e4eba
commit
c180e8df1e
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ start_relay() {
|
||||||
config_get proto "$cfg" proto
|
config_get proto "$cfg" proto
|
||||||
[ "$proto" = "relay" ] || return 0
|
[ "$proto" = "relay" ] || return 0
|
||||||
|
|
||||||
|
config_get_bool disabled "$cfg" disabled 0
|
||||||
|
[ "$disabled" -gt 0 ] && return 0
|
||||||
|
|
||||||
SERVICE_DAEMONIZE=1
|
SERVICE_DAEMONIZE=1
|
||||||
SERVICE_WRITE_PID=1
|
SERVICE_WRITE_PID=1
|
||||||
SERVICE_PID_FILE="/var/run/relay-$cfg.pid"
|
SERVICE_PID_FILE="/var/run/relay-$cfg.pid"
|
||||||
|
|
Loading…
Reference in a new issue