mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
parent
678503db36
commit
8e1a7da881
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user