Re: Clearing ttyv0 after boot

2009-07-18 Thread Joe Snikeris
On Sat, Jul 18, 2009 at 12:56 AM, Mel
Flynnmel.flynn+fbsd.questi...@mailing.thruhere.net wrote:
 On Friday 17 July 2009 18:11:56 Joe Snikeris wrote:

 As the subject suggests, I'd like to clear ttyv0 immediately after
 booting so that it looks exactly like the other ttys.  I suspect I
 might have to add a local rc script, but I'm fairly new to FreeBSD and
 am not sure if this is the correct way to go.

 Does anyone have any pointers?

 This recently came up on this list:
 http://www.freebsd.org/cgi/getmsg.cgi?fetch=83142+0+/usr/local/www/db/text/2009/freebsd-questions/20090510.freebsd-questions

Thanks for the pointer to that thread.

'clear  /etc/issue' did it for me.


 To do this during at the end of rc stage take hints from
 /etc/rc.d/syscons, the rc(8) manpage and rcorder(8) about when to launch
 this script. Ideally you want to REQUIRE what the last script reported
 by rcorder PROVIDEs and possibly delay execution a bit (see
 /etc/rc.d/bgfsck for an example of that), since you can't really hook
 into the login prompt is now displayed event.

 Also, if you want the console to stay the same, you will need to
 configure /etc/syslog.conf and change the line that sends to /dev/console
 to send it to /var/log/console.log. newsyslog.conf(5) is already
 configured to rotate that log.
 --
 Mel
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Clearing ttyv0 after boot

2009-07-17 Thread Joe Snikeris
Hi all,

As the subject suggests, I'd like to clear ttyv0 immediately after
booting so that it looks exactly like the other ttys.  I suspect I
might have to add a local rc script, but I'm fairly new to FreeBSD and
am not sure if this is the correct way to go.

Does anyone have any pointers?

Thanks in advance,
Joe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Clearing ttyv0 after boot

2009-07-17 Thread Polytropon
On Fri, 17 Jul 2009 21:11:56 -0500, Joe Snikeris j...@snikeris.com wrote:
 Hi all,
 
 As the subject suggests, I'd like to clear ttyv0 immediately after
 booting so that it looks exactly like the other ttys.  I suspect I
 might have to add a local rc script, but I'm fairly new to FreeBSD and
 am not sure if this is the correct way to go.
 
 Does anyone have any pointers?

You could add the command

/usr/bin/tput clear

as the last line (prior to exit 0) to /etc/rc - but it's not encouraged
to modify this file because it can cause trouble on updating. But
it will work.

Note that you can still press the Scroll Lock key and see the messages
that have been scrolled off the terminal. If you want, you can use
an additional call to /usr/sbin/vidcontrol to clear the buffer. Refer
to the vidcontrol manpage for how to do that.



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Clearing ttyv0 after boot

2009-07-17 Thread Mel Flynn
On Friday 17 July 2009 18:11:56 Joe Snikeris wrote:

 As the subject suggests, I'd like to clear ttyv0 immediately after
 booting so that it looks exactly like the other ttys.  I suspect I
 might have to add a local rc script, but I'm fairly new to FreeBSD and
 am not sure if this is the correct way to go.

 Does anyone have any pointers?

This recently came up on this list:
http://www.freebsd.org/cgi/getmsg.cgi?fetch=83142+0+/usr/local/www/db/text/2009/freebsd-questions/20090510.freebsd-questions

To do this during at the end of rc stage take hints from
/etc/rc.d/syscons, the rc(8) manpage and rcorder(8) about when to launch
this script. Ideally you want to REQUIRE what the last script reported
by rcorder PROVIDEs and possibly delay execution a bit (see
/etc/rc.d/bgfsck for an example of that), since you can't really hook
into the login prompt is now displayed event.

Also, if you want the console to stay the same, you will need to
configure /etc/syslog.conf and change the line that sends to /dev/console
to send it to /var/log/console.log. newsyslog.conf(5) is already
configured to rotate that log.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org