1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 02:34:06 +02:00

relayd: move the interface fixup to the right place

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31545 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2012-04-30 18:27:12 +00:00
parent 866b5511e1
commit 7877ca154f

View File

@ -11,6 +11,7 @@ resolve_ifname() {
resolve_network() { resolve_network() {
local ifn local ifn
fixup_interface "$1"
config_get ifn "$1" ifname config_get ifn "$1" ifname
[ -z "$ifn" ] && return 1 [ -z "$ifn" ] && return 1
resolve_ifname "$ifn" resolve_ifname "$ifn"
@ -26,8 +27,6 @@ start_relay() {
config_get proto "$cfg" proto config_get proto "$cfg" proto
[[ "$proto" == relay ]] || return 0 [[ "$proto" == relay ]] || return 0
fixup_interface "$cfg"
SERVICE_DAEMONIZE=1 SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1 SERVICE_WRITE_PID=1
SERVICE_PID_FILE="/var/run/relay-$cfg.pid" SERVICE_PID_FILE="/var/run/relay-$cfg.pid"