From: Roy Marples Date: Thu, 2 Feb 2012 18:23:06 +0000 (+0000) Subject: Set if_up if_down correctly per RA or DHCP X-Git-Tag: v5.5.2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11791d34470b308c915c0afd020125950f92d891;p=thirdparty%2Fdhcpcd.git Set if_up if_down correctly per RA or DHCP --- diff --git a/configure.c b/configure.c index e12046f9..e61184be 100644 --- a/configure.c +++ b/configure.c @@ -221,7 +221,7 @@ make_env(const struct interface *iface, const char *reason, char ***argv) e--; } *--p = '\0'; - if (iface->state->new || iface->ras) { + if ((dhcp && iface->state->new) || (ra && iface->ras)) { env[8] = strdup("if_up=true"); env[9] = strdup("if_down=false"); } else {