commit:     dbfe9a7fefa70150528a66aae380b7de52d15832
Author:     Hagbard Celine <hagbardcelin <AT> gmail <DOT> com>
AuthorDate: Tue Nov 14 19:11:32 2017 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Nov 14 19:11:40 2017 +0000
URL:        https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=dbfe9a7f

init.d/net.lo: per-iface moduleslist

Avoid race conditions in generation of modules list (nettree), and allow
per-interface custom module work more easily.

Closes: https://bugs.gentoo.org/637474
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 init.d/net.lo.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/init.d/net.lo.in b/init.d/net.lo.in
index d7108a5..33cc932 100644
--- a/init.d/net.lo.in
+++ b/init.d/net.lo.in
@@ -5,7 +5,6 @@
 
 SHDIR="@LIBEXECDIR@/sh"
 MODULESDIR="@LIBEXECDIR@/net"
-MODULESLIST="${RC_SVCDIR}/nettree"
 _config_vars="config metric routes"
 
 [ -z "${IN_BACKGROUND}" ] && IN_BACKGROUND="NO"
@@ -26,6 +25,10 @@ else
        exit 1
 fi
 
+# Create per-interface nettree ordering, avoids race conditions and allows
+# per-interface custom modules.
+MODULESLIST="${RC_SVCDIR}/nettree$(get_interface)"
+
 depend()
 {
        local IFACE=$(get_interface)

Reply via email to