From owner-freebsd-questions@FreeBSD.ORG Sat Jul 18 05:56:09 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E46D7106566C for ; Sat, 18 Jul 2009 05:56:09 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id B3DD28FC0C for ; Sat, 18 Jul 2009 05:56:09 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from smoochies.rachie.is-a-geek.net (mailhub.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id E3F697E818 for ; Fri, 17 Jul 2009 21:56:08 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Fri, 17 Jul 2009 21:56:07 -0800 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA1; KDE/4.2.4; i386; ; ) References: <20b8a1c50907171911t625ef579rbde5cc84f071e9f1@mail.gmail.com> In-Reply-To: <20b8a1c50907171911t625ef579rbde5cc84f071e9f1@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907172156.07685.mel.flynn+fbsd.questions@mailing.thruhere.net> Subject: Re: Clearing ttyv0 after boot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jul 2009 05:56:10 -0000 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: 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