diff options
author | brian <brian@FreeBSD.org> | 2001-04-03 08:20:20 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-04-03 08:20:20 +0000 |
commit | 281e45eb31cb2f712ab3e3d776eea8918fb856ee (patch) | |
tree | 8dacce2131f6a55f071a5deff4ea318cd4cf3702 /usr.sbin | |
parent | 3285ed55d8edd62cd789ed4264222d4beb23c6ef (diff) | |
download | FreeBSD-src-281e45eb31cb2f712ab3e3d776eea8918fb856ee.zip FreeBSD-src-281e45eb31cb2f712ab3e3d776eea8918fb856ee.tar.gz |
Don't say ``PPP enabled'' if we're given the -quiet switch
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index 628f2bc..41c4ef1 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) |