summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-04-30 18:27:12 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-04-30 18:27:12 +0000
commit7a8d12bafaf8b882d0278156e5f22d0a396687e2 (patch)
treec9e060587e660287452ee6fa1afee46fca509f8e /package
parentea1d49fc90a156b86c469579c034129d42966c9d (diff)
downloadmtk-20170518-7a8d12bafaf8b882d0278156e5f22d0a396687e2.zip
mtk-20170518-7a8d12bafaf8b882d0278156e5f22d0a396687e2.tar.gz
mtk-20170518-7a8d12bafaf8b882d0278156e5f22d0a396687e2.tar.bz2
relayd: move the interface fixup to the right place
SVN-Revision: 31545
Diffstat (limited to 'package')
-rw-r--r--package/relayd/files/relay.init3
1 files changed, 1 insertions, 2 deletions
diff --git a/package/relayd/files/relay.init b/package/relayd/files/relay.init
index 314f65b..307fbf2 100644
--- a/package/relayd/files/relay.init
+++ b/package/relayd/files/relay.init
@@ -11,6 +11,7 @@ resolve_ifname() {
resolve_network() {
local ifn
+ fixup_interface "$1"
config_get ifn "$1" ifname
[ -z "$ifn" ] && return 1
resolve_ifname "$ifn"
@@ -26,8 +27,6 @@ start_relay() {
config_get proto "$cfg" proto
[[ "$proto" == relay ]] || return 0
- fixup_interface "$cfg"
-
SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1
SERVICE_PID_FILE="/var/run/relay-$cfg.pid"