summaryrefslogtreecommitdiffstats
path: root/contrib/isc-dhcp
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-03-18 19:46:55 +0000
committerobrien <obrien@FreeBSD.org>2003-03-18 19:46:55 +0000
commit501b002069e8836b5fa23b9fe359921141d5aa7d (patch)
tree21d8d0ba7f4886f457884692a742ea9ef618777b /contrib/isc-dhcp
parentd18eb82da543041fcb76c4f84e5ce7f514660496 (diff)
downloadFreeBSD-src-501b002069e8836b5fa23b9fe359921141d5aa7d.zip
FreeBSD-src-501b002069e8836b5fa23b9fe359921141d5aa7d.tar.gz
Add a -v(erbose) flag to undo our -q(uiet) default.
Diffstat (limited to 'contrib/isc-dhcp')
-rw-r--r--contrib/isc-dhcp/client/dhclient.87
-rw-r--r--contrib/isc-dhcp/client/dhclient.c3
2 files changed, 10 insertions, 0 deletions
diff --git a/contrib/isc-dhcp/client/dhclient.8 b/contrib/isc-dhcp/client/dhclient.8
index 52758a2..0a99042 100644
--- a/contrib/isc-dhcp/client/dhclient.8
+++ b/contrib/isc-dhcp/client/dhclient.8
@@ -41,6 +41,9 @@ dhclient - Dynamic Host Configuration Protocol Client
.B -q
]
[
+.B -v
+]
+[
.B -1
]
[
@@ -204,6 +207,10 @@ facility. The
.B -q
flag prevents any messages other than errors from being printed to the
standard error descriptor.
+.B -v
+flag turns on all messages.
+Opposite of
+.B -q .
.PP
The client normally doesn't release the current lease as it is not
required by the DHCP protocol. Some cable ISPs require their clients
diff --git a/contrib/isc-dhcp/client/dhclient.c b/contrib/isc-dhcp/client/dhclient.c
index 5672723..96c836f 100644
--- a/contrib/isc-dhcp/client/dhclient.c
+++ b/contrib/isc-dhcp/client/dhclient.c
@@ -185,6 +185,9 @@ int main (argc, argv, envp)
} else if (!strcmp (argv [i], "-q")) {
quiet = 1;
quiet_interface_discovery = 1;
+ } else if (!strcmp (argv [i], "-v")) {
+ quiet = 0;
+ quiet_interface_discovery = 0;
} else if (!strcmp (argv [i], "-s")) {
if (++i == argc)
usage ();
OpenPOWER on IntegriCloud