aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-24 18:12:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-01-24 18:12:09 +0000
commitc180e8df1e0c556d9bdd5f5f492736849925c0df (patch)
tree8ddb25831bf5d972687b5204bde5b01d9e88bb4a /package/network
parentea638e4ebab2b24ccef56462e61381da6161e795 (diff)
downloadupstream-c180e8df1e0c556d9bdd5f5f492736849925c0df.tar.gz
upstream-c180e8df1e0c556d9bdd5f5f492736849925c0df.tar.bz2
upstream-c180e8df1e0c556d9bdd5f5f492736849925c0df.zip
relayd: prevent start for disabled interfaces
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44099
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/relayd/files/relay.init3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/services/relayd/files/relay.init b/package/network/services/relayd/files/relay.init
index 3635e9c4bd..c6288637d1 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"