From owner-freebsd-current@FreeBSD.ORG Fri May 11 12:42:37 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 66EF116A402 for ; Fri, 11 May 2007 12:42:37 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id 3F6EE13C45D for ; Fri, 11 May 2007 12:42:36 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from neutrino.centtech.com (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l4BCgZ3w037220 for ; Fri, 11 May 2007 07:42:35 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <464464BB.3090100@freebsd.org> Date: Fri, 11 May 2007 07:42:35 -0500 From: Eric Anderson User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/3227/Fri May 11 04:39:25 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh1.centtech.com Subject: [PATCH] Fancy rc startup (revisited) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2007 12:42:37 -0000 About a year ago, I posted[1] a patch to 6-STABLE that added a fancy rc startup style similar to linux, with the [OK], [FAILED], etc printouts. That patch had serious bit rot and other issues, and so I've now revamped it to work on -CURRENT, with a more refined usage, and defaults to off. One can choose the messages displayed (OK, FAILED, GOOD, SWEET, DARN, whatever you want), and choose black and white or color output. It seems to work on serial output, as well as console output. I'd rather stay away from a massive bikeshedding, so let me summarize: - Default is off, so nobody would notice it. - Can be set to black and white OR color, users choice - Configurable messages - Default is extra-verbose boot messages, but that can be turned off easily with an rc.conf knob or probably better yet, make the default non-verbose. I don't care either way. - No animals hurt in the making of the patch I'd like to here feedback, and would love to see this go in to the tree, if a friendly src committer would be willing to do the trick. The patch can be found here: http://googlebit.com/freebsd/patches/rc_fancy.patch-13 So this should get someone up and running: cd /tmp; fetch http://googlebit.com/freebsd/patches/rc_fancy.patch-13 cd /etc; patch < /tmp/rc_fancy.patch-13 echo "rc_fancy=\"YES\" >> /etc/rc.conf (or echo "rc_fancy=\"COLOR\" >> /etc/rc.conf ) Eric [1]: http://lists.freebsd.org/pipermail/freebsd-hackers/2006-April/016164.html