Re: (more) supressing of messages in startup script
Roy Marples
Tue Apr 27 10:21:26 2010
On 26/04/2010 17:32, Olaf Westrik wrote:
I'm using 5.2.2 with background and quiet config options, which works
nicely and quietly ;)
However if I add debug (which can be very handy sometimes), I see
following when starting dhcpcd through my bootscript:
dhcpcd: version 5.2.2 starting
dhcpcd: forking to background
Is there any way to supress these? I'd hate to need to do something
like>/dev/null 2>&1
Does the attached patch help?
Thanks
Roy
diff --git a/dhcpcd.c b/dhcpcd.c
index 861846c..f7d4f9e 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -1673,7 +1673,7 @@ main(int argc, char **argv)
if (options & DHCPCD_DEBUG)
setlogmask(LOG_UPTO(LOG_DEBUG));
- else if (options & DHCPCD_QUIET)
+ if (options & DHCPCD_QUIET)
close(STDERR_FILENO);
if (!(options & DHCPCD_TEST)) {
Archive administrator: postmaster@marples.name