diff options
| author | Roy Marples <roy@marples.name> | 2012-02-02 18:23:06 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2012-02-02 18:23:06 +0000 |
| commit | 11791d34470b308c915c0afd020125950f92d891 (patch) | |
| tree | 770575e1d687c85e74ecd0767c82be1622837d6d | |
| parent | 449df9c85965b2a6415a608ecb61d9f5c0256bed (diff) | |
| download | dhcpcd-11791d34470b308c915c0afd020125950f92d891.tar.xz | |
Set if_up if_down correctly per RA or DHCP
| -rw-r--r-- | configure.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
