4

I would like to pipe my tty number through figlet (ASCII generator) for the /etc/issue (message shown before login). Obviously this means I can't just update it from /etc/rc.local.

On my system (Arch), agetty is responsible for parsing the file.

1
  • It seems you're going to need to hack your own agetty replacement or at least write a wrapper :)
    – Vitor Py
    Commented Jul 18, 2011 at 2:06

2 Answers 2

4

I'm sure there's a cleaner way to do this, but one solution would be to run your figlet command and redirect the output into /etc/issue.tty{1-11}, effectively hard-coding the figlet output for each tty.

1

This reminds me of the linuxlogo package. Check it out like this:

$ apt-cache search linuxlogo
linuxlogo - Color ANSI System Logo

$ sudo apt-get install linuxlogo
...

$ linuxlogo -L list
2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .