Add -quiet option to dtlogin.
This should shut up the console spamming, for those who use VT1. Default behavior is not changed.
This commit is contained in:
committed by
Jon Trulson
parent
e3973a9320
commit
380867c31c
@@ -1617,6 +1617,8 @@ GettyMessage( struct display *d, int msgnum )
|
||||
FILE *tf;
|
||||
char buf[128];
|
||||
|
||||
if (quiet) return;
|
||||
|
||||
strcpy(buf,"/dev/");
|
||||
strcat(buf,d->gettyLine);
|
||||
|
||||
|
||||
@@ -495,6 +495,7 @@ extern int debugLevel;
|
||||
extern char *errorLogFile;
|
||||
extern int errorLogSize;
|
||||
extern int daemonMode;
|
||||
extern int quiet;
|
||||
extern char *pidFile;
|
||||
extern int lockPidFile;
|
||||
extern char *authDir;
|
||||
|
||||
@@ -72,6 +72,7 @@ int debugLevel;
|
||||
char *errorLogFile;
|
||||
int errorLogSize;
|
||||
int daemonMode;
|
||||
int quiet;
|
||||
char *pidFile;
|
||||
int lockPidFile;
|
||||
char *authDir;
|
||||
@@ -254,6 +255,8 @@ struct dmResources {
|
||||
"50",
|
||||
"daemonMode", "DaemonMode", DM_BOOL, (char **) &daemonMode,
|
||||
"false",
|
||||
"quiet", "quiet", DM_BOOL, (char **) &quiet,
|
||||
"false",
|
||||
"pidFile", "PidFile", DM_STRING, &pidFile,
|
||||
"",
|
||||
"lockPidFile", "LockPidFile", DM_BOOL, (char **) &lockPidFile,
|
||||
@@ -499,7 +502,8 @@ XrmOptionDescRec optionTable [] = {
|
||||
{"-debug", "*debugLevel", XrmoptionSepArg, (caddr_t) NULL },
|
||||
{"-xrm", NULL, XrmoptionResArg, (caddr_t) NULL },
|
||||
{"-daemon", ".daemonMode", XrmoptionNoArg, "true" },
|
||||
{"-nodaemon", ".daemonMode", XrmoptionNoArg, "false" }
|
||||
{"-nodaemon", ".daemonMode", XrmoptionNoArg, "false" },
|
||||
{"-quiet", ".quiet", XrmoptionNoArg, "true" }
|
||||
};
|
||||
|
||||
static int originalArgc;
|
||||
|
||||
Reference in New Issue
Block a user