relayd: move the interface fixup to the right place

SVN-Revision: 31545
This commit is contained in:
Felix Fietkau 2012-04-30 18:27:12 +00:00
parent ea1d49fc90
commit 7a8d12bafa
1 changed files with 1 additions and 2 deletions

View File

@ -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"