commit:     8bb61b90c1d791bafd5cd0b6c54093cccee425f4
Author:     Alexander Zubkov <green <AT> qrator <DOT> net>
AuthorDate: Thu May 23 14:56:42 2024 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Thu May 23 18:12:13 2024 +0000
URL:        https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=8bb61b90

net/wireguard.sh: make wireguard module to run before interface

Wireguard module was configured to run after interface module, that
caused interface-related settings like mtu not to apply, because
wireguard interfaces was not present by that time. It seems logical
that wireguard module should be run before interface module.

Credits to lmk <lmkrawiec <AT> gmail.com> who proposed the solution and
to Louis Sautier (sbraz) <sbraz <AT> gentoo.org> who proposed the patch.

Closes: https://bugs.gentoo.org/678184
Closes: https://github.com/gentoo/netifrc/pull/54
Signed-off-by: Louis Sautier (sbraz) <sbraz <AT> gentoo.org>
Signed-off-by: Alexander Zubkov <green <AT> qrator.net>
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 net/wireguard.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/wireguard.sh b/net/wireguard.sh
index bb71d6f..f6ca69e 100644
--- a/net/wireguard.sh
+++ b/net/wireguard.sh
@@ -6,7 +6,7 @@
 wireguard_depend()
 {
        program wg
-       after interface
+       before interface
 }
 
 wireguard_pre_start()

Reply via email to