From b9f1ae825442679a7835c18c2f0fa852fda34be2 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 24 Jul 2020 01:03:44 -0600 Subject: [PATCH] lifecycle: rewrite bond-xmit-hash-policy as IF_BOND_XMIT_HASH_POLICY when building env --- libifupdown/lifecycle.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libifupdown/lifecycle.c b/libifupdown/lifecycle.c index 349e352..8892fc3 100644 --- a/libifupdown/lifecycle.c +++ b/libifupdown/lifecycle.c @@ -222,6 +222,9 @@ lif_lifecycle_run_phase(const struct lif_execute_opts *opts, struct lif_interfac while (*ep++) { *ep = toupper(*ep); + + if (*ep == '-') + *ep = '_'; } lif_environment_push(&envp, envkey, (const char *) entry->data);