]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't run PREINIT when testing.
authorRoy Marples <roy@marples.name>
Tue, 19 Aug 2008 10:18:31 +0000 (10:18 +0000)
committerRoy Marples <roy@marples.name>
Tue, 19 Aug 2008 10:18:31 +0000 (10:18 +0000)
client.c

index 72178c8de09f5c00234eb3fec6908d4b512e418b..b085f9709320840ea8c755f56dadde49c71c2592 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1757,7 +1757,8 @@ dhcp_run(const struct options *options, int *pid_fd)
        state = xzalloc(sizeof(*state));
        state->pid_fd = pid_fd;
        state->interface = iface;
-       run_script(options, iface->name, "PREINIT", NULL, NULL);
+       if (!(options->options & DHCPCD_TEST))
+               run_script(options, iface->name, "PREINIT", NULL, NULL);
 
        if (client_setup(state, options) == -1)
                goto eexit;