]> git.pld-linux.org Git - packages/mingetty.git/blame - mingetty-mono-console.patch
- x32 rebuild
[packages/mingetty.git] / mingetty-mono-console.patch
CommitLineData
d69a6473
AM
1diff -urN mingetty-1.07.org/mingetty.8 mingetty-1.07/mingetty.8
2--- mingetty-1.07.org/mingetty.8 2003-05-14 10:55:43.000000000 +0200
55ddfd8d 3+++ mingetty-1.07/mingetty.8 2007-02-11 18:59:03.438623000 +0100
4bd21eb8 4@@ -6,7 +6,7 @@
55ddfd8d
AM
5 [\-\-noclear] [\-\-nonewline] [\-\-noissue] [\-\-nohangup] [\-\-nohostname]
6 [\-\-long\-hostname] [\-\-loginprog=/bin/login] [\-\-nice=10] [\-\-delay=5]
4bd21eb8
AM
7 [\-\-chdir=/home] [\-\-chroot=/chroot] [\-\-autologin username]
8-[\-\-loginpause]
9+[\-\-loginpause] [\-\-mono]
55ddfd8d
AM
10 .I tty
11 .PP
12 .SH DESCRIPTION
d69a6473
AM
13@@ -45,6 +45,9 @@
14 .B \-\-loginprog /bin/login
15 Change the login app.
16 .TP
7407f4c3
SZ
17+.B \-\-mono
18+Set terminal type to "linux-m" instead of default "linux" (for mono consoles)
d69a6473
AM
19+.TP
20 .B \-\-nice 10
21 Change the priority by calling nice().
22 .TP
23diff -urN mingetty-1.07.org/mingetty.c mingetty-1.07/mingetty.c
55ddfd8d
AM
24--- mingetty-1.07.org/mingetty.c 2007-02-11 18:58:27.658623000 +0100
25+++ mingetty-1.07/mingetty.c 2007-02-11 18:58:43.434623000 +0100
d69a6473
AM
26@@ -94,6 +94,8 @@
27 static char *autologin = NULL;
28 /* terminal mode */
29 static int mode = K_RAW;
7407f4c3
SZ
30+/* Set mono terminal type */
31+static int mono_term = 0;
32
d69a6473
AM
33 /* error() - output error messages */
34 static void error (const char *fmt, ...)
4bd21eb8 35@@ -409,7 +409,7 @@
d69a6473
AM
36 "[--nohangup] [--nohostname] [--long-hostname] "
37 "[--loginprog=/bin/login] [--nice=10] [--delay=10] "
38 "[--chdir=/home] [--chroot=/chroot] [--autologin=user] "
4bd21eb8
AM
39- "[--loginpause] "
40+ "[--loginpause] [--mono] "
d69a6473
AM
41 "tty' with e.g. tty=tty1", progname);
42 }
43
44@@ -417,6 +420,7 @@
45 { "nohostname", no_argument, &nohostname, 1 },
46 { "loginprog", required_argument, NULL, 'l' },
47 { "long-hostname", no_argument, &longhostname, 1 },
7407f4c3 48+ { "mono", no_argument, &mono_term, 1},
d69a6473 49 { "nice", required_argument, NULL, 'n' },
7407f4c3
SZ
50 { 0, 0, 0, 0 }
51 };
d69a6473
AM
52@@ -437,7 +441,10 @@
53 #if defined(s390) || defined(__s390__)
54 putenv ("TERM=dumb");
55 #else
7407f4c3 56- putenv ("TERM=linux");
7407f4c3
SZ
57+ if (mono_term)
58+ putenv ("TERM=linux-m");
59+ else
60+ putenv ("TERM=linux");
d69a6473
AM
61 #endif
62
63 while ((c = getopt_long (argc, argv, "a:d:l:n:w:r:", long_options,
This page took 0.079845 seconds and 4 git commands to generate.