Page MenuHomeFreeBSD

D12108.id32337.diff
No OneTemporary

D12108.id32337.diff

Index: libexec/getty/gettytab.h
===================================================================
--- libexec/getty/gettytab.h
+++ libexec/getty/gettytab.h
@@ -88,6 +88,7 @@
#define AC gettystrs[28].value
#define AL gettystrs[29].value
#define DF gettystrs[30].value
+#define IMP gettystrs[31].value
/*
* Numeric definitions.
Index: libexec/getty/gettytab.5
===================================================================
--- libexec/getty/gettytab.5
+++ libexec/getty/gettytab.5
@@ -28,7 +28,7 @@
.\" from: @(#)gettytab.5 8.4 (Berkeley) 4/19/94
.\" $FreeBSD$
.\" "
-.Dd February 2, 2017
+.Dd August 23, 2017
.Dt GETTYTAB 5
.Os
.Sh NAME
@@ -130,6 +130,8 @@
.It "ig bool false ignore garbage characters in login name"
.It "im str" Ta Dv NULL
.Ta No "initial (banner) message"
+.It "iM str" Ta Dv NULL
+.Ta No "execute named file to generate initial (banner) message"
.It "in str" Ta So Li ^C
.Sc Ta No "interrupt character"
.It "is num unused input speed"
@@ -146,7 +148,7 @@
.It "mb bool false do flow control based on carrier"
.It "nc bool false terminal does not supply carrier (set clocal)"
.It "nl bool false terminal has (or might have) a newline character"
-.It "np bool false terminal uses no parity (i.e. 8-bit characters)"
+.It "np bool false terminal uses no parity (i.e., 8-bit characters)"
.It "nx str default next table (for auto speed selection)"
.It "o0 num unused tty output flags to write messages"
.It "o1 num unused tty output flags to read login name"
Index: libexec/getty/init.c
===================================================================
--- libexec/getty/init.c
+++ libexec/getty/init.c
@@ -82,6 +82,7 @@
{ "ac" }, /* modem answer-chat */
{ "al" }, /* user to auto-login */
{ "df", datefmt}, /* format for strftime() */
+ { "iM" }, /* initial message program */
{ 0 }
};
Index: libexec/getty/main.c
===================================================================
--- libexec/getty/main.c
+++ libexec/getty/main.c
@@ -324,6 +324,8 @@
}
first_time = 0;
+ if (IMP && *IMP && !(PL && PP))
+ system(IMP);
if (IM && *IM && !(PL && PP))
putf(IM);
if (setjmp(timeout)) {

File Metadata

Mime Type
text/plain
Expires
Mon, Jul 20, 1:46 AM (8 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35259837
Default Alt Text
D12108.id32337.diff (2 KB)

Event Timeline