Subject: small fix for /etc/netstart
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu>
From: Frank van der Linden <vdlinden@fwi.uva.nl>
List: netbsd-bugs
Date: 01/02/1994 13:52:10
 Here's a small patch for /etc/netstart.
If you don't have hostname.* files (which means no ethernet), netstart gives
errors like: "netstart: cannot open /etc/netstart.netbsd". This is caused
by the way in which the arguments are expanded. I've inserted a simple check
if the file netstart wants to use for input, really exists.

Happy new year,

Onno van der Linden     c/o    vdlinden@fwi.uva.nl (Frank van der Linden)
*** /usr/src/etc/netstart.old	Thu Dec 16 13:18:14 1993
--- /usr/src/etc/netstart	Sat Jan  1 23:22:33 1994
***************
*** 58,62 ****
      IFS=$tmp
      unset tmp
! 
      while [ $# -ge 2 ] ; do
          shift            # get rid of "hostname"
--- 58,64 ----
      IFS=$tmp
      unset tmp
!     if [ ! -e "$1.$2" ]; then
!       exit
!     fi
      while [ $# -ge 2 ] ; do
          shift            # get rid of "hostname"

------------------------------------------------------------------------------