This patch adds the ability to pass environment variables to the network
script. This allows to enable debugging by adding the "NETCTL_DEBUG=yes" into
the /etc/conf.d/netctl file.

Signed-off-by: Jiri Tyr <[email protected]>
---
 services/[email protected] | 1 +
 1 file changed, 1 insertion(+)

diff --git a/services/[email protected] b/services/[email protected]
index b8a19c2..576617f 100644
--- a/services/[email protected]
+++ b/services/[email protected]
@@ -8,5 +8,6 @@ Wants=network.target
 [Service]
 Type=oneshot
 RemainAfterExit=yes
+EnvironmentFile=-/etc/conf.d/netctl
 ExecStart=/usr/lib/network/network start %I
 ExecStop=/usr/lib/network/network stop %I
-- 
2.2.2

Reply via email to