Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 May 1997 20:42:57 +0200 (CEST)
From:      Jacob Bohn Lorensen <jacob@jblhome.ping.dk>
To:        hackers@freebsd.org
Subject:   Re: /usr/src/etc/Makefile install rule.
Message-ID:  <199705031842.UAA01682@pippin.jblhome.ping.dk>
In-Reply-To: j@uriah.heep.sax.de's message of Thu, 1 May 1997 22:06:46 %2B0200
References:  <18731.862467696@time.cdrom.com> <19970501220646.OS30433@uriah.heep.sax.de>

index | next in thread | previous in thread | raw e-mail

>>>>> "J" == J Wunsch <j@uriah.heep.sax.de> writes:

    J> As Jordan K. Hubbard wrote:
    >> Only /etc/rc.conf and /etc/rc.local are supposed to be
    >> customized,

    J> rc.serial is, too.  It only contains commented out stuff, in
    J> the expectation that the local admin might turn on the bits as
    J> required.

Why not parametrize this file too, like the other rc files? Put
something like:

  serial_devices="standard cyclades mouse"
  serial_standard="maybe d a 0 1"
  serial_cyclades="modem c c 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f"
  serial_mouse="mouse d a 2"

and have rc.serial do

  for dev in $serial_devices; do
    eval \$serial_$dev
  done;

this way, what actually needs changing is moved into sysconfig,
whereas the details of how to change it remains in rc.serial. 

Jacob.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705031842.UAA01682>