From krw@tcn.net  Sun May  4 08:11:42 1997
Received: from Pkrw.tcn.net (Pkrw.tcn.net [199.166.4.58])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA28808
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 4 May 1997 08:11:40 -0700 (PDT)
Received: (from krw@localhost)
	by Pkrw.tcn.net (8.8.5/8.8.5) id MAA00319;
	Sun, 4 May 1997 12:15:08 GMT
Message-Id: <199705041215.MAA00319@Pkrw.tcn.net>
Date: Sun, 4 May 1997 12:15:08 GMT
From: "Kenneth R. Westerback" <krw@tcn.net>
Reply-To: krw@tcn.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: rc.network prints 'hostname' rather than `hostname`
X-Send-Pr-Version: 3.2

>Number:         3493
>Category:       conf
>Synopsis:       rc.network prints 'hostname' rather than `hostname`
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May  4 08:20:01 PDT 1997
>Closed-Date:    Sun May 4 12:03:21 PDT 1997
>Last-Modified:  Sun May  4 12:10:01 PDT 1997
>Originator:     Kenneth R. Westerback
>Release:        FreeBSD 2.2-STABLE i386
>Organization:
>Environment:

	FreeBSD 2.2-STABLE make world'ed through src-2.2.0263, using
	new rc.conf/rc.network setup

>Description:

	The first thing rc.network does is print the message

	'Doing initial network setup: hostname' 

	when what I think it should be printing (assuming as in my
	case your machine's hostname is Pkrw)

	'Doing initial network setup: Pkrw'

>How-To-Repeat:

	Boot, watch initialization messages.	

>Fix:
	

--- /usr/src/etc/rc.network	Sat May  3 00:02:50 1997
+++ /etc/rc.network	Sun May  4 12:02:20 1997
@@ -11,12 +11,12 @@
 # First pass startup stuff.
 
 network_pass1() {
-    echo -n 'Doing initial network setup:'
+    echo -n 'Doing initial network setup: '
     # Set the host name if it is not already set
     if [ -z "`hostname -s`" ] ; then
 	    hostname $hostname
-	    echo -n ' hostname'
     fi
+    echo -n `hostname -s`
 
     # Set the domainname if we're using NIS
     if [ -n "$nisdomainname" -a "x$nisdomainname" != "xNO" ] ; then
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Sun May 4 12:03:21 PDT 1997 
State-Changed-Why:  
The current behavior is quite correct. 

From: "Jordan K. Hubbard" <jkh@time.cdrom.com>
To: krw@tcn.net
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/3493: rc.network prints 'hostname' rather than `hostname` 
Date: Sun, 04 May 1997 12:03:33 -0700

 > 	The first thing rc.network does is print the message
 > 
 > 	'Doing initial network setup: hostname' 
 
 Right, it's setting up the hostname.  It shouldn't print your actual
 hostname here because what it's trying to tell you is the fact that
 it's _setting_ your hostname, not what your hostname is. :-)
 
 					Jordan
>Unformatted:
