projects
/
openwrt
/
staging
/
jogo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ea86b9
)
relayd: use config_load+fixup_interface instead of scan_interfaces to speed up startu...
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 30 Apr 2012 18:24:00 +0000
(18:24 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 30 Apr 2012 18:24:00 +0000
(18:24 +0000)
SVN-Revision: 31544
package/relayd/files/relay.init
patch
|
blob
|
history
diff --git
a/package/relayd/files/relay.init
b/package/relayd/files/relay.init
index 98a38b4eaa6fe89c21901d1bbb07f7ad35af87de..314f65baf513d9b7cc51613794b50c1075d21332 100644
(file)
--- a/
package/relayd/files/relay.init
+++ b/
package/relayd/files/relay.init
@@
-26,6
+26,8
@@
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"
@@
-92,6
+94,6
@@
stop() {
start() {
include /lib/network
- scan_interfaces
+ config_load network
config_foreach start_relay interface
}