From owner-freebsd-bugs@FreeBSD.ORG Sat Dec 3 01:50:04 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C394816A41F for ; Sat, 3 Dec 2005 01:50:04 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0C5443D5C for ; Sat, 3 Dec 2005 01:50:02 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jB31o258024832 for ; Sat, 3 Dec 2005 01:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jB31o2c2024831; Sat, 3 Dec 2005 01:50:02 GMT (envelope-from gnats) Resent-Date: Sat, 3 Dec 2005 01:50:02 GMT Resent-Message-Id: <200512030150.jB31o2c2024831@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "L. Jason Godsey" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEE4A16A41F for ; Sat, 3 Dec 2005 01:43:01 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59BF343D60 for ; Sat, 3 Dec 2005 01:43:01 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jB31h1Pj068467 for ; Sat, 3 Dec 2005 01:43:01 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id jB31h0iF068466; Sat, 3 Dec 2005 01:43:00 GMT (envelope-from nobody) Message-Id: <200512030143.jB31h0iF068466@www.freebsd.org> Date: Sat, 3 Dec 2005 01:43:00 GMT From: "L. Jason Godsey" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: conf/89870: feature request to make netif verbose rc.conf toggle X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 01:50:05 -0000 >Number: 89870 >Category: conf >Synopsis: feature request to make netif verbose rc.conf toggle >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Dec 03 01:50:02 GMT 2005 >Closed-Date: >Last-Modified: >Originator: L. Jason Godsey >Release: FreeBSD 6.0-RELEASE >Organization: >Environment: FreeBSD ne1.yournix.com 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Fri Dec 2 19:53:47 EST 2005 root@ne1.yournix.com:/usr/obj/usr/src/sys/YOURNIX i386 >Description: I'm using start_if.fxp0 to add alot of aliases. I'm not sure why, but all this output when /etc/rc.d/netif displays verbose ifconfig fxp0 wipes dmesg, to the extent that only 1 line is present in /var/run/dmesg.boot. This change makes the verbose output more easily tuned via rc.conf: netif_verbose="NO" I believe this behavior is more like /etc/rc.d/ip6addrctl behavior. Thank you for taking time to consider my request. >How-To-Repeat: >Fix: diff -ur etc.orig/defaults/rc.conf etc/defaults/rc.conf --- etc.orig/defaults/rc.conf Fri Dec 2 20:33:17 2005 +++ etc/defaults/rc.conf Fri Dec 2 20:30:48 2005 @@ -379,6 +379,9 @@ ip6addrctl_enable="NO" # Set to YES to enable default address selection ip6addrctl_verbose="NO" # Set to YES to enable verbose configuration messages +netif_verbose="YES" # Set to YES to enable verbose configuration messages + + ############################################################## ### System console options ################################# ############################################################## diff -ur etc.orig/rc.d/netif etc/rc.d/netif --- etc.orig/rc.d/netif Fri Dec 2 20:33:17 2005 +++ etc/rc.d/netif Fri Dec 2 20:30:58 2005 @@ -65,7 +65,7 @@ fi # Configure the interface(s). - network_common ifn_start verbose + network_common ifn_start if [ -f /etc/rc.d/ipfilter ] ; then # Resync ipfilter @@ -86,12 +86,12 @@ echo '.' } -# network_common routine verbose +# network_common routine # Common configuration subroutine for network interfaces. This # routine takes all the preparatory steps needed for configuriing -# an interface and then calls $routine. If $verbose is specified, +# an interface and then calls $routine. If netif_verbose is specified, # it will call ifconfig(8) to show, in long format, the configured -# interfaces. If $verbose is not given, it will simply output the +# interfaces. If netif_verbose is not given, it will simply output the # configured interface(s). network_common() { @@ -103,7 +103,7 @@ else _func="$1" fi - [ -n "$2" ] && _verbose=yes + checkyesno netif_verbose && _verbose=yes # Set the scope of the command (all interfaces or just one). # >Release-Note: >Audit-Trail: >Unformatted: