diff options
| author | Roy Marples <roy@marples.name> | 2009-07-21 20:01:42 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-07-21 20:01:42 +0000 |
| commit | 7e978ec217b682ac0c281ca0cb6831d2d69793a5 (patch) | |
| tree | 5aa5e51e6d398db16e38633db9cfd14924742741 | |
| parent | 1e11fce587c1463e84899f2649ff40a83c9dbbe1 (diff) | |
| download | dhcpcd-7e978ec217b682ac0c281ca0cb6831d2d69793a5.tar.xz | |
Don't FAIL the script when testing
| -rw-r--r-- | dhcpcd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |
