Dumps the last lease for the
.Ar interface
to stdout.
+.Ar interface
+could also be a path to a DHCP wire formatted file.
.It Fl V, -variables
Display a list of option codes and the associated variable for use in
.Xr dhcpcd-run-hooks 8 .
strlcpy(iface->state->options->script, if_options->script,
sizeof(iface->state->options->script));
iface->state->new = read_lease(iface);
+ if (iface->state->new == NULL && errno == ENOENT) {
+ strlcpy(iface->leasefile, argv[optind],
+ sizeof(iface->leasefile));
+ iface->state->new = read_lease(iface);
+ }
if (iface->state->new == NULL) {
if (errno == ENOENT)
syslog(LOG_ERR, "%s: no lease to dump",