projects
/
openwrt
/
staging
/
ynezz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea638e4
)
relayd: prevent start for disabled interfaces
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 24 Jan 2015 18:12:09 +0000
(18:12 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 24 Jan 2015 18:12:09 +0000
(18:12 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44099
package/network/services/relayd/files/relay.init
patch
|
blob
|
history
diff --git
a/package/network/services/relayd/files/relay.init
b/package/network/services/relayd/files/relay.init
index 3635e9c4bdf48782a81357dde66956fb8da45d34..c6288637d19ab8b8c67ad985c5fdf51d790b78f5 100644
(file)
--- 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"