From: Felix Fietkau Date: Mon, 30 Apr 2012 18:24:00 +0000 (+0000) Subject: relayd: use config_load+fixup_interface instead of scan_interfaces to speed up startu... X-Git-Tag: reboot~14084 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ea1d49fc90a156b86c469579c034129d42966c9d;p=openwrt%2Fstaging%2Fjogo.git relayd: use config_load+fixup_interface instead of scan_interfaces to speed up startup time SVN-Revision: 31544 --- diff --git a/package/relayd/files/relay.init b/package/relayd/files/relay.init index 98a38b4eaa..314f65baf5 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 }