From: Roy Marples Date: Tue, 6 May 2014 18:15:52 +0000 (+0000) Subject: These are not DHCP states. X-Git-Tag: v6.4.0~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23f78f35c2d74d12644f91a0e28dcccb70e00af2;p=thirdparty%2Fdhcpcd.git These are not DHCP states. --- diff --git a/script.c b/script.c index d82e807f..cad6ed07 100644 --- a/script.c +++ b/script.c @@ -263,6 +263,13 @@ make_env(const struct interface *ifp, const char *reason, char ***argv) else if (strcmp(reason, "ROUTERADVERT") == 0) ra = 1; #endif + else if (strcmp(reason, "PREINIT") == 0 || + strcmp(reason, "CARRIER") == 0 || + strcmp(reason, "NOCARRIER") == 0 || + strcmp(reason, "UNKNOWN") == 0 || + strcmp(reason, "DEPARTED") == 0 || + strcmp(reason, "STOPPED") == 0) + ; #ifdef INET else dhcp = 1;