Subject: misc/4811: /etc/rc in NetBSD 1.3 is missing support for /etc/
To: None <>
From: Duncan McEwan <duncan@MCS.VUW.AC.NZ>
List: netbsd-bugs
Date: 01/14/1998 20:58:11
>Number:         4811
>Category:       misc
>Synopsis:       No support for in /etc/rc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 12 18:35:02 1998
>Originator:     Duncan McEwan
	School of Maths and Computing Science, Victoria University.
>Release:        NetBSD-1.3

System: NetBSD 1.3 NetBSD 1.3 (HINOTE) #13: Sat Jan 10 22:46:14 PST 1998 i386


A NetBSD 1.2G system that I have has /etc/rc with the following RCS id

	$NetBSD: rc,v 1.78 1997/06/12 15:18:58 mrg Exp $

The 1.3 system I have just installed has /etc/rc with

	$NetBSD: rc,v 1997/11/28 19:52:48 mellon Exp $

The older version has functionality that the newer one doesn't have -- in
particular the ldconfig command is invoked with the contents of /etc/
as arguments.

Note that both 1.2G and 1.3 have manual pages describing, so if
this functionality was intentionally removed, the man page should go as well.


Inspection of NetBSD 1.3 /etc/rc


Either remove the man page for, or reinstate the 1.2G functionality.

*** rc.orig	Wed Dec 31 10:30:26 1997
--- rc	Wed Jan 14 20:53:52 1998
*** 277,283 ****
  if [ -f /sbin/ldconfig ]; then
  	echo 'creating runtime link editor directory cache.'
! 	ldconfig
  # load kernel modules specified in /etc/lkm.conf
--- 277,287 ----
  if [ -f /sbin/ldconfig ]; then
  	echo 'creating runtime link editor directory cache.'
! 	if [ -f /etc/ ]; then
! 		ldconfig `cat /etc/`
! 	else
! 		ldconfig
! 	fi
  # load kernel modules specified in /etc/lkm.conf