From: Roy Marples Date: Wed, 18 Jul 2012 08:35:07 +0000 (+0000) Subject: Don't set if_up or if_down as true when testing. X-Git-Tag: v5.6.2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a02ed28a38e24da2cf4186e165292b7f6a5d7d38;p=thirdparty%2Fdhcpcd.git Don't set if_up or if_down as true when testing. --- diff --git a/configure.c b/configure.c index 15747fdd..d8aefd77 100644 --- a/configure.c +++ b/configure.c @@ -216,7 +216,10 @@ make_env(const struct interface *iface, const char *reason, char ***argv) e--; } *--p = '\0'; - if ((dhcp && iface->state->new) || (ra && ipv6rs_has_ra(iface))) { + if (strcmp(reason, "TEST") == 0) { + env[8] = strdup("if_up=false"); + env[9] = strdup("if_down=false"); + } else if ((dhcp && iface->state->new) || (ra && ipv6rs_has_ra(iface))){ env[8] = strdup("if_up=true"); env[9] = strdup("if_down=false"); } else {