summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-07-21 20:01:42 +0000
committerRoy Marples <roy@marples.name>2009-07-21 20:01:42 +0000
commit7e978ec217b682ac0c281ca0cb6831d2d69793a5 (patch)
tree5aa5e51e6d398db16e38633db9cfd14924742741
parent1e11fce587c1463e84899f2649ff40a83c9dbbe1 (diff)
downloaddhcpcd-7e978ec217b682ac0c281ca0cb6831d2d69793a5.tar.xz
Don't FAIL the script when testing
-rw-r--r--dhcpcd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index a4ab9d6a..b5cb9718 100644
--- 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;