From owner-freebsd-hackers Sat May 3 11:54:48 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA09998 for hackers-outgoing; Sat, 3 May 1997 11:54:48 -0700 (PDT) Received: from uucp.DK.net (uucp@uucp.DK.net [193.88.44.47]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id LAA09993 for ; Sat, 3 May 1997 11:54:44 -0700 (PDT) Received: from pingnet (uucp@localhost) by uucp.DK.net (8.6.12/8.6.12) with UUCP id UAA16326 for hackers@freebsd.org; Sat, 3 May 1997 20:54:39 +0200 Received: from jblhome by ic1.ic.dk with UUCP id AA13780 (5.65c8/IDA-1.4.4j for hackers@freebsd.org); Sat, 3 May 1997 20:50:59 +0200 Received: (from jacob@localhost) by pippin.jblhome.ping.dk (8.8.5/8.7.3) id UAA01682; Sat, 3 May 1997 20:42:57 +0200 (CEST) Date: Sat, 3 May 1997 20:42:57 +0200 (CEST) Message-Id: <199705031842.UAA01682@pippin.jblhome.ping.dk> From: Jacob Bohn Lorensen To: hackers@freebsd.org In-Reply-To: j@uriah.heep.sax.de's message of Thu, 1 May 1997 22:06:46 +0200 Subject: Re: /usr/src/etc/Makefile install rule. References: <18731.862467696@time.cdrom.com> <19970501220646.OS30433@uriah.heep.sax.de> X-Charset: Latin1 X-Char-Esc: 29 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>>>> "J" == J Wunsch 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.