From: Ted Lemon Date: Tue, 24 Nov 1998 22:15:06 +0000 (+0000) Subject: Add a -lf option to specify a lease file on the command line. X-Git-Tag: V2-BETA-1-PATCH-7~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71ca3903595536e77dcd403f161de7a706c103b2;p=thirdparty%2Fdhcp.git Add a -lf option to specify a lease file on the command line. --- diff --git a/client/dhclient.c b/client/dhclient.c index 0f3ce974e..ce4d955bd 100644 --- a/client/dhclient.c +++ b/client/dhclient.c @@ -56,7 +56,7 @@ #ifndef lint static char copyright[] = -"$Id: dhclient.c,v 1.44.2.2 1998/07/10 23:14:10 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dhclient.c,v 1.44.2.3 1998/11/24 22:15:06 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -126,6 +126,10 @@ int main (argc, argv, envp) no_daemon = 1; } else if (!strcmp (argv [i], "-D")) { save_scripts = 1; + } else if (!strcmp (argv [i], "-lf")) { + if (++i == argc) + usage (); + path_dhclient_db = argv [i]; } else if (argv [i][0] == '-') { usage (); } else { @@ -247,7 +251,7 @@ int main (argc, argv, envp) static void usage () { - error ("Usage: dhclient [-c] [-p ] [interface]"); + error ("Usage: dhclient [-c] [-p ] [-lf lease-file] [interface]"); } void cleanup ()