mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-20 02:54:43 +02:00
relayd: use config_load+fixup_interface instead of scan_interfaces to speed up startup time
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31544 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b905c102f0
commit
866b5511e1
@ -26,6 +26,8 @@ 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"
|
||||||
@ -92,6 +94,6 @@ stop() {
|
|||||||
|
|
||||||
start() {
|
start() {
|
||||||
include /lib/network
|
include /lib/network
|
||||||
scan_interfaces
|
config_load network
|
||||||
config_foreach start_relay interface
|
config_foreach start_relay interface
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user