Subject: misc/6877: /etc/netstart output is ugly
To: None <gnats-bugs@gnats.netbsd.org>
From: None <st@devnull.demon.co.uk>
List: netbsd-bugs
Date: 01/25/1999 19:11:14
>Number: 6877
>Category: misc
>Synopsis: /etc/netstart output is ugly
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Jan 25 11:20:01 1999
>Last-Modified:
>Originator: Scott Telford
>Organization:
>Release: 1.3.3
>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
>Audit-Trail:
>Unformatted: