From owner-freebsd-questions@FreeBSD.ORG Fri Mar 24 17:30:41 2006 Return-Path: X-Original-To: FreeBSD-questions@FreeBSD.org Delivered-To: FreeBSD-questions@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67F1E16A422 for ; Fri, 24 Mar 2006 17:30:41 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A6FB43D5D for ; Fri, 24 Mar 2006 17:30:40 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 3A7475DF1; Fri, 24 Mar 2006 12:30:40 -0500 (EST) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 95520-08; Fri, 24 Mar 2006 12:30:39 -0500 (EST) Received: from [199.103.21.238] (pan.codefab.com [199.103.21.238]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 61E5C5C75; Fri, 24 Mar 2006 12:30:39 -0500 (EST) In-Reply-To: <5045F0637A62EE469942AAB4@utd59514.utdallas.edu> References: <5045F0637A62EE469942AAB4@utd59514.utdallas.edu> Mime-Version: 1.0 (Apple Message framework v746.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <0E3B0BBC-D653-4425-B4EE-B4D941DAE628@mac.com> Content-Transfer-Encoding: 7bit From: Charles Swiger Date: Fri, 24 Mar 2006 12:30:36 -0500 To: Paul Schmehl X-Mailer: Apple Mail (2.746.3) X-Virus-Scanned: amavisd-new at codefab.com Cc: FreeBSD-questions@FreeBSD.org Subject: Re: Shell scripting question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Mar 2006 17:30:41 -0000 On Mar 24, 2006, at 12:12 PM, Paul Schmehl wrote: > Neither rc.conf nor source_rc_confs appears anywhere else in the > script, so how does this suck in the variables? And what does the > syntax ". /etc/rc.conf" do? Your second question is the answer to your first question: . /etc/rc.conf ...or "source _file_", means to read the file into the current shell and execute those commands. It's used to load the variables set in / etc/rc.conf. > Here's what I understand so far. If the variable > source_rc_confs_defined is a zero length string, then if /etc/ > defaults/rc.conf is readable, then do something with it. I have no > idea what the next line "source_rc_confs" does. Else, if /etc/ > rc.conf is readable, then do something with that. Yes. Take a look at the end of /etc/defaults/rc.conf and /etc/ rc.subr... -- -Chuck