]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Set if_up if_down correctly per RA or DHCP
authorRoy Marples <roy@marples.name>
Thu, 2 Feb 2012 18:23:06 +0000 (18:23 +0000)
committerRoy Marples <roy@marples.name>
Thu, 2 Feb 2012 18:23:06 +0000 (18:23 +0000)
configure.c

index e12046f94336aafeac9d046a111c689e131b810b..e61184becc8bdc6bf4ef3488c5575d93ba7adc98 100644 (file)
@@ -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 {