diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-04-30 18:24:00 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-04-30 18:24:00 +0000 |
commit | 866b5511e15072bf5824380a1c30822a9e38960c (patch) | |
tree | af02b161557e9fc516f18752c074fe4ac2a44ce9 /package/relayd | |
parent | b905c102f041ea88e7a5e1b25bd089953bf345f7 (diff) |
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
Diffstat (limited to 'package/relayd')
-rw-r--r-- | package/relayd/files/relay.init | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/relayd/files/relay.init b/package/relayd/files/relay.init index 98a38b4ea..314f65baf 100644 --- 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 } |