From c180e8df1e0c556d9bdd5f5f492736849925c0df Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 24 Jan 2015 18:12:09 +0000 Subject: [PATCH] relayd: prevent start for disabled interfaces Signed-off-by: Felix Fietkau SVN-Revision: 44099 --- package/network/services/relayd/files/relay.init | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/network/services/relayd/files/relay.init b/package/network/services/relayd/files/relay.init index 3635e9c4bdf4..c6288637d19a 100644 --- a/package/network/services/relayd/files/relay.init +++ b/package/network/services/relayd/files/relay.init @@ -41,6 +41,9 @@ start_relay() { config_get proto "$cfg" proto [ "$proto" = "relay" ] || return 0 + config_get_bool disabled "$cfg" disabled 0 + [ "$disabled" -gt 0 ] && return 0 + SERVICE_DAEMONIZE=1 SERVICE_WRITE_PID=1 SERVICE_PID_FILE="/var/run/relay-$cfg.pid" -- 2.30.2