]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't FAIL the script when testing
authorRoy Marples <roy@marples.name>
Tue, 21 Jul 2009 20:01:42 +0000 (20:01 +0000)
committerRoy Marples <roy@marples.name>
Tue, 21 Jul 2009 20:01:42 +0000 (20:01 +0000)
dhcpcd.c

index a4ab9d6a67454d9ff7fe437f5b1e8dfa2b83d4f1..b5cb9718d9e02ec114d024effa0942efcdee5528 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -321,7 +321,8 @@ send_message(struct interface *iface, int type,
                 * stopping the interface. */
                if (r == -1) {
                        syslog(LOG_ERR, "%s: send_raw_packet: %m", iface->name);
-                       drop_config(iface, "FAIL");
+                       if (!(options & DHCPCD_TEST))
+                               drop_config(iface, "FAIL");
                        close_sockets(iface);
                        delete_timeout(NULL, iface);
                        callback = NULL;