From 0fea4ed0d081ce91d41ba645c307d562e598f03e Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Tue, 3 Apr 2001 08:20:20 +0000 Subject: [PATCH] Don't say ``PPP enabled'' if we're given the -quiet switch --- usr.sbin/ppp/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 628f2bcc1e7..41c4ef13df6 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -434,8 +434,10 @@ main(int argc, char **argv) while ((ret = read(bgpipe[0], &c, 1)) == 1) { switch (c) { case EX_NORMAL: - prompt_Printf(prompt, "PPP enabled\n"); - log_Printf(LogPHASE, "Parent: PPP enabled\n"); + if (!sw.quiet) { + prompt_Printf(prompt, "PPP enabled\n"); + log_Printf(LogPHASE, "Parent: PPP enabled\n"); + } break; case EX_REDIAL: if (!sw.quiet)