#ifndef lint
static char copyright[] =
-"$Id: dhclient.c,v 1.40 1997/09/16 18:09:41 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dhclient.c,v 1.41 1997/10/20 21:35:34 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
u_int16_t remote_port;
int log_priority;
int no_daemon;
+int save_scripts;
static void usage PROTO ((void));
ntohs (local_port));
} else if (!strcmp (argv [i], "-d")) {
no_daemon = 1;
+ } else if (!strcmp (argv [i], "-D")) {
+ save_scripts = 1;
} else if (argv [i][0] == '-') {
usage ();
} else {
fclose (scriptFile);
chmod (scriptName, 0700);
rval = system (scriptName);
- /* unlink (scriptName); */
+ if (!save_scripts)
+ unlink (scriptName);
return rval;
}