mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-24 10:35:03 +08:00
Don't run the script with NAK when testing.
This commit is contained in:
parent
decc33d0b2
commit
e996f8767e
6
dhcpcd.c
6
dhcpcd.c
@ -475,8 +475,10 @@ handle_dhcp(struct interface *iface, struct dhcp_message **dhcpp)
|
||||
}
|
||||
/* We should restart on a NAK */
|
||||
log_dhcp(LOG_WARNING, "NAK:", iface, dhcp);
|
||||
drop_config(iface, "NAK");
|
||||
unlink(iface->leasefile);
|
||||
if (!(options & DHCPCD_TEST)) {
|
||||
drop_config(iface, "NAK");
|
||||
unlink(iface->leasefile);
|
||||
}
|
||||
delete_event(iface->raw_fd);
|
||||
close(iface->raw_fd);
|
||||
iface->raw_fd = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user