aboutsummaryrefslogtreecommitdiffstats
path: root/package/relayd
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
commit280b7f6d6bcf49ee883d766e666e49394148beb1 (patch)
tree7128baf177abdb7cd778663c960323f8cd736fc9 /package/relayd
parentc6da372ed88f83ff873e2f561be2bf2e7fc1bc8d (diff)
downloadupstream-280b7f6d6bcf49ee883d766e666e49394148beb1.tar.gz
upstream-280b7f6d6bcf49ee883d766e666e49394148beb1.tar.bz2
upstream-280b7f6d6bcf49ee883d766e666e49394148beb1.zip
relayd: move the interface fixup to the right place
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31545 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/relayd')
-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 314f65baf5..307fbf2baf 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"