Re: Print a message to all terminals at boot

2012-02-29 Thread Tom H
On Thu, Mar 1, 2012 at 1:26 AM, Jason Heeris wrote: > On 1 March 2012 14:22, Bob Proulx wrote: >>> >>> If it's static, you can add it to "/etc/issue". >> >> Or if the process can update /etc/issue before getty can display it. > > rc.local appears to run before the contents of /etc/issue is > disp

Re: Print a message to all terminals at boot

2012-02-29 Thread Tom H
On Thu, Mar 1, 2012 at 1:22 AM, Bob Proulx wrote: > Tom H wrote: >> Jason Heeris wrote: >> > >> > line (ttyS0) and the usual tty ones. I would like to print a message >> > at the very end of the boot sequence, but before any user logs in (the >> > message is a diagnostic that may affect whether th

Re: Print a message to all terminals at boot

2012-02-29 Thread Jason Heeris
On 1 March 2012 14:26, Jason Heeris wrote: > Incidentally, it contains escape sequences ( \n \l ) at the end. Are > they for use with "echo -e" or something else entirely? Ah, just found the answer to this in "man issue" — they're escape sequences for getty (or whatever substitute). — Jason --

Re: Print a message to all terminals at boot

2012-02-29 Thread Jason Heeris
On 1 March 2012 14:22, Bob Proulx wrote: >> If it's static, you can add it to "/etc/issue". > > Or if the process can update /etc/issue before getty can display it. rc.local appears to run before the contents of /etc/issue is displayed... is that guaranteed (in squeeze), or just coincidental on m

Re: Print a message to all terminals at boot

2012-02-29 Thread Bob Proulx
Bob Proulx wrote: > okay. The contents are displayed when getting displays the login > prompt. Meaning that when getting is started it will catch the Grr... s/getting/getty/g My typos are getting worse. Sorry for the noise. Bob signature.asc Description: Digital signature

Re: Print a message to all terminals at boot

2012-02-29 Thread Bob Proulx
Tom H wrote: > Jason Heeris wrote: > > line (ttyS0) and the usual tty ones. I would like to print a message > > at the very end of the boot sequence, but before any user logs in (the > > message is a diagnostic that may affect whether the user logs in at all). > > If it's static, you can add it to

Re: Print a message to all terminals at boot

2012-02-29 Thread Tom H
On Wed, Feb 29, 2012 at 10:45 PM, Jason Heeris wrote: > > I have a Debian Squeeze system that exposes a terminal on the serial > line (ttyS0) and the usual tty ones. I would like to print a message > at the very end of the boot sequence, but before any user logs in (the > message is a diagnostic t

Print a message to all terminals at boot

2012-02-29 Thread Jason Heeris
I have a Debian Squeeze system that exposes a terminal on the serial line (ttyS0) and the usual tty ones. I would like to print a message at the very end of the boot sequence, but before any user logs in (the message is a diagnostic that may affect whether the user logs in at all). If I put, say,