From: Ted Lemon Date: Tue, 22 Dec 1998 22:23:59 +0000 (+0000) Subject: Print a copyright banner on startup unless -q is specified. X-Git-Tag: V2-BETA-1-PATCH-7~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f528daa82dfd32d9f2daea07bcd544d8c03655d;p=thirdparty%2Fdhcp.git Print a copyright banner on startup unless -q is specified. --- diff --git a/client/dhclient.c b/client/dhclient.c index dbe144ad1..0faa5b497 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.4 1998/12/20 18:20:39 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dhclient.c,v 1.44.2.5 1998/12/22 22:23:59 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -89,6 +89,13 @@ int log_priority; int no_daemon; int save_scripts; +static char copyright[] = +"Copyright 1995, 1996, 1997, 1998 The Internet Software Consortium."; +static char arr [] = "All rights reserved."; +static char message [] = "Internet Software Consortium DHCP Client V2.0b1pl7 "; +static char contrib [] = "Please contribute if you find this software useful."; +static char url [] = "For info: http://www.isc.org/dhcp-contrib.html"; + static void usage PROTO ((void)); int main (argc, argv, envp) @@ -99,6 +106,7 @@ int main (argc, argv, envp) struct servent *ent; struct interface_info *ip; int seed; + int quiet; #ifdef SYSLOG_4_2 openlog ("dhclient", LOG_NDELAY); @@ -126,6 +134,9 @@ int main (argc, argv, envp) if (++i == argc) usage (); path_dhclient_db = argv [i]; + } else if (!strcmp (argv [i], "-q")) { + quiet = 1; + quiet_interface_discovery = 1; } else if (argv [i][0] == '-') { usage (); } else { @@ -143,6 +154,15 @@ int main (argc, argv, envp) interfaces = tmp; } } + + if (!quiet) { + note (message); + note (copyright); + note (arr); + note (contrib); + note (url); + } + /* Default to the DHCP/BOOTP port. */ if (!local_port) { ent = getservbyname ("dhcpc", "udp");