mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-27 12:03:45 +08:00
Fix prior patch
This commit is contained in:
parent
25f760b563
commit
6b35b393a6
4
script.c
4
script.c
@ -338,9 +338,9 @@ make_env(const struct interface *ifp, const char *reason, char ***argv)
|
||||
if (strcmp(reason, "STOPPED") == 0) {
|
||||
env[9] = strdup("if_up=false");
|
||||
if (ifo->options & DHCPCD_RELEASE)
|
||||
env[9] = strdup("if_down=true");
|
||||
env[10] = strdup("if_down=true");
|
||||
else
|
||||
env[9] = strdup("if_down=false");
|
||||
env[10] = strdup("if_down=false");
|
||||
} else if (strcmp(reason, "TEST") == 0 ||
|
||||
strcmp(reason, "PREINIT") == 0 ||
|
||||
strcmp(reason, "CARRIER") == 0 ||
|
||||
|
Loading…
Reference in New Issue
Block a user