]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
script: STOP should not set if_down=true
authorRoy Marples <roy@marples.name>
Thu, 13 Nov 2025 11:19:38 +0000 (11:19 +0000)
committerRoy Marples <roy@marples.name>
Thu, 13 Nov 2025 11:20:18 +0000 (11:20 +0000)
src/script.c

index 0149aee9919f7360b9bec8be2a67625b1c015707..51e7ccf24a42748b59351ccb491007d872056f31 100644 (file)
@@ -420,6 +420,7 @@ make_env(struct dhcpcd_ctx *ctx, const struct interface *ifp,
        } else if (strcmp(reason, "TEST") == 0 ||
            strcmp(reason, "PREINIT") == 0 ||
            strcmp(reason, "CARRIER") == 0 ||
+           strcmp(reason, "STOP") == 0 ||
            strcmp(reason, "UNKNOWN") == 0)
        {
                if_up = false_str;