From f8c14fc233cd029dc5badb4c5baf858ad814afcd Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sat, 25 Jul 2020 02:18:53 -0600 Subject: [PATCH] libifupdown: lifecycle: if in verbose mode, export VERBOSE to executors --- libifupdown/lifecycle.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libifupdown/lifecycle.c b/libifupdown/lifecycle.c index 0c4ff78..3dca04a 100644 --- a/libifupdown/lifecycle.c +++ b/libifupdown/lifecycle.c @@ -224,6 +224,9 @@ lif_lifecycle_run_phase(const struct lif_execute_opts *opts, struct lif_interfac else lif_environment_push(&envp, "MODE", "stop"); + if (opts->verbose) + lif_environment_push(&envp, "VERBOSE", "1"); + struct lif_node *iter; bool did_address = false, did_gateway = false;