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

index 4c1a5b44d739bb35e4ceda9080d16b8ce7b641b8..071a2c1e3e411a9c880632f22f6edfd046ecd018 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -322,7 +322,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;