On Tue, Jun 10, 2008 at 05:40:12PM +0200, Dexter Filmore wrote:
> Encountered an oddity on a headless machine with etch r3:
> 
> When the system is booted, kernel messages are put on tty1. 

They actually go to /dev/tty (your "current" console).

> Since this is the 
> terminal I login to after it's booted this is highly annoying since my screen 
> is garbled when I run scripts and the kernel messages me about... mounted 
> disks or plugged ethernet cables etc.
> I've never seen this with other distros afair, Slackware puts ll its kernel 
> output on tty8 for example. I'd like to have that here, too.
> Can do?

setlogcons .

You'll have to open(8) that terminal first, I believe.

I use in a certian init.d script:


CONSOLE=10
openvt -c "$CONSOLE" -- /bin/true || true
setlogcons "$CONSOLE" || true


To revert to the default:  setlogcons ''

-- 
Tzafrir Cohen         | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |                    | a Mutt's
[EMAIL PROTECTED] |                    |  best
ICQ# 16849754         |                    | friend


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to