[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Print a message to all terminals at boot



On Thu, Mar 1, 2012 at 1:26 AM, Jason Heeris <jason.heeris@gmail.com> wrote:
> On 1 March 2012 14:22, Bob Proulx <bob@proulx.com> 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
> my system? Because that would be the simplest way to achieve this, I
> think.
>
> Incidentally, it contains escape sequences ( \n \l ) at the end. Are
> they for use with "echo -e" or something else entirely?

"/etc/issue" is displayed after "/etc/rc.local" is called.

The escapes are getty "shortcuts" (I'm not sure what the
real/technical name is); "\n" is the hostname, "\l" is the tty.


Reply to: