NetBSD Problem Report #6877
Received: (qmail 28260 invoked from network); 25 Jan 1999 19:12:59 -0000
Message-Id: <199901251911.TAA00673@devnull.demon.co.uk>
Date: Mon, 25 Jan 1999 19:11:14 GMT
From: st@devnull.demon.co.uk
Reply-To: st@devnull.demon.co.uk
To: gnats-bugs@gnats.netbsd.org
Subject: /etc/netstart output is ugly
X-Send-Pr-Version: 3.95
>Number: 6877
>Category: misc
>Synopsis: /etc/netstart output is ugly
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: erh
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Jan 25 11:20:01 +0000 1999
>Closed-Date: Mon Nov 08 09:31:18 +0000 1999
>Last-Modified: Mon Nov 08 09:33:28 +0000 1999
>Originator: Scott Telford
>Release: 1.3.3
>Organization:
>Environment:
System: NetBSD trillian 1.3.3 NetBSD 1.3.3 (TRILLIAN) #7: Mon Jan 18 23:42:14 GMT 1999 root@trillian:/usr/src/sys/arch/i386/compile/TRILLIAN i386
>Description:
When /etc/netstart is ifconfig'ing the network interface(s), it
outputs to the console both the interface name and the ifconfig
output in a badly-formatted way; eg. on my /i386 system with an
ne0 interface, it reads:
configuring network interfaces: ne0ne0: flags=8863<UP,...
>How-To-Repeat:
Watch system with network interface(s) boot up.
>Fix:
I suggest the echoing of the interface name is suppressed as it
is superfluous if ifconfig output is shown. Eg. something like:
--- /etc/netstart Fri Dec 11 22:56:12 1998
+++ netstart Mon Jan 18 23:54:42 1999
@@ -80,14 +80,12 @@
else
tmp="$net_interfaces"
fi
- echo -n 'configuring network interfaces:'
+ echo 'configuring network interfaces:'
for int in $tmp; do
eval `echo 'args=$ifconfig_'$int`
if [ -n "$args" ]; then
- echo -n " $int"
ifconfig $int $args
elif [ -f /etc/ifconfig.$int ]; then
- echo -n " $int"
(while read args; do
ifconfig $int $args
done) < /etc/ifconfig.$int
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: misc-bug-people->erh
Responsible-Changed-By: erh
Responsible-Changed-When: Fri Nov 5 09:42:04 PST 1999
Responsible-Changed-Why:
grabbed.
From: erh@nimenees.com
To: st@devnull.demon.co.uk
Cc: gnats-bugs@netbsd.org
Subject: Re: misc/6877: /etc/netstart output is ugly
Date: Fri, 5 Nov 1999 11:45:08 -0600
Are you still having the ugly netstart output? On my machine
it just prints the name of the interface (w/o the extra interface info)
Eric Haszlakiewicz
erh@netbsd.org
From: erh@nimenees.com
To: Scott Telford <st@devnull.demon.co.uk>
Cc: gnats-bugs@netbsd.org
Subject: Re: misc/6877: /etc/netstart output is ugly
Date: Sat, 6 Nov 1999 14:52:13 -0600
On Sat, Nov 06, 1999 at 06:29:07PM +0000, Scott Telford wrote:
> > Are you still having the ugly netstart output? On my machine
> > it just prints the name of the interface (w/o the extra interface info)
> Yes, it's still in 1.4.1.
>
> More data: I have an ne0 interface, auto_ifconfig=YES in /etc/rc.conf,
> and an /etc/ifconfig.ne0 file containing:
>
> inet trillian 255.255.255.0 broad-hitchhikers
> (where "trillian" and "broad-hitchhikers" are defined in /etc/hosts)
!? This works? Don't you need something more like:
inet trillian netmask 255.255.255.0 broadcast broad-hitchhikers
?
You might not need the broadcast broad-hitchhikers portion since,
with the "netmask" string in there you'll actually be setting the netmask
correctly. Also, your ifconfig file will cause an error on later versions
of netbsd with a stricter ifconfig command.
hmm... does doing this: (after fixing the file)
ifconfig le0 `cat /etc/ifconfig.le0`
output anything? It shouldn't, I just tried with ifconfig from 1.4.1 and
current: neither spits out anything.
eric
From: erh@nimenees.com
To: Scott Telford <st@devnull.demon.co.uk>
Cc: gnats-bugs@netbsd.org
Subject: Re: misc/6877: /etc/netstart output is ugly
Date: Mon, 8 Nov 1999 03:14:23 -0600
On Sun, Nov 07, 1999 at 11:14:55PM +0000, Scott Telford wrote:
> > !? This works? Don't you need something more like:
> > inet trillian netmask 255.255.255.0 broadcast broad-hitchhikers
> > ?
> Yes, it works. I don't think that file has changed since NetBSD 1.1 or
> 1.2 on my system, so I guess the syntax might be a little old-fashioned.
are you sure it sets the netmask? It didn't appear to when I tried.
But I guess since you specify the broadcast address it's enough to get things
working.
> I found out what the problem was - blank lines at the end of the
> /etc/ifconfig.ne0 file. This causes /etc/netstart to run ifconfig a
> second time with no arguments, hence the output. Mea culpa. I'm not sure
> if there's a trivial way to ignore blank lines in /etc/ifconfig.* in the
> /etc/netstart script. Anyway, I guess this PR can be closed now. Thanks
> for your help.
ah, ok. I'll close it. Additionally, I think I've got an easy way
to ignore blank lines which I'll throw in netstart.
eric
State-Changed-From-To: open->closed
State-Changed-By: erh
State-Changed-When: Mon Nov 8 01:31:18 PST 1999
State-Changed-Why:
Unsightly output caused by blank lines in the ifconfig.<foo> file.
Fixed by ignoring blank lines when reading these files in netstart.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.