From: Roy Marples Date: Tue, 19 Aug 2008 10:18:31 +0000 (+0000) Subject: Don't run PREINIT when testing. X-Git-Tag: v4.0.2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c422b680a317b2f0b83773e6fdbfa54940a6c34;p=thirdparty%2Fdhcpcd.git Don't run PREINIT when testing. --- diff --git a/client.c b/client.c index 72178c8d..b085f970 100644 --- 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;