aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/relayd/files
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
commit8e1a7da881ea5c6679c43cfe2dbe2dbc4d4d652e (patch)
treeab3f44427e16db40a17d3859aabc076f881c9ee8 /package/network/services/relayd/files
parent678503db36a8d906113952cac07e0d99b20037f6 (diff)
downloadupstream-8e1a7da881ea5c6679c43cfe2dbe2dbc4d4d652e.tar.gz
upstream-8e1a7da881ea5c6679c43cfe2dbe2dbc4d4d652e.tar.bz2
upstream-8e1a7da881ea5c6679c43cfe2dbe2dbc4d4d652e.zip
relayd: prevent start for disabled interfaces
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44099 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/relayd/files')
-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"