]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't log waiting for carrier when backgrounding.
authorRoy Marples <roy@marples.name>
Mon, 21 Jul 2008 06:17:08 +0000 (06:17 +0000)
committerRoy Marples <roy@marples.name>
Mon, 21 Jul 2008 06:17:08 +0000 (06:17 +0000)
client.c

index fc7cb3fb7c51bb972011d3e7f1b315a11ee031ba..1602cf1dcea841c2975de335ec798adf9d5bd846 100644 (file)
--- a/client.c
+++ b/client.c
@@ -603,7 +603,8 @@ client_setup(struct if_state *state, const struct options *options)
        if (state->options & DHCPCD_LINK) {
                open_link_socket(iface);
                if (carrier_status(iface->name) == 0) {
-                       if (state->options & DHCPCD_DAEMONISE)
+                       if (state->options & DHCPCD_DAEMONISE &&
+                           !(state->options & DHCPCD_BACKGROUND))
                                logger(LOG_INFO, "waiting for carrier");
                        state->carrier = LINK_DOWN;
                }