libifupdown: lifecycle: if in verbose mode, export VERBOSE to executors

This commit is contained in:
Ariadne Conill 2020-07-25 02:18:53 -06:00
parent 83d64b0a69
commit f8c14fc233

View file

@ -224,6 +224,9 @@ lif_lifecycle_run_phase(const struct lif_execute_opts *opts, struct lif_interfac
else else
lif_environment_push(&envp, "MODE", "stop"); lif_environment_push(&envp, "MODE", "stop");
if (opts->verbose)
lif_environment_push(&envp, "VERBOSE", "1");
struct lif_node *iter; struct lif_node *iter;
bool did_address = false, did_gateway = false; bool did_address = false, did_gateway = false;