projects
/
openwrt
/
staging
/
thess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea1d49f
)
relayd: move the interface fixup to the right place
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 30 Apr 2012 18:27:12 +0000
(18:27 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 30 Apr 2012 18:27:12 +0000
(18:27 +0000)
SVN-Revision: 31545
package/relayd/files/relay.init
patch
|
blob
|
history
diff --git
a/package/relayd/files/relay.init
b/package/relayd/files/relay.init
index 314f65baf513d9b7cc51613794b50c1075d21332..307fbf2baf333e8fd58e24dbea84dd0c356b68e9 100644
(file)
--- 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"