Re: Shell scripting question
- From: Charles Swiger <cswiger@xxxxxxx>
- Date: Fri, 24 Mar 2006 12:30:36 -0500
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
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- References:
- Shell scripting question
- From: Paul Schmehl
- Shell scripting question
- Prev by Date: Re: Problem installing port
- Next by Date: Vanishing libraries - libgmodule-2.0.so.600
- Previous by thread: Shell scripting question
- Next by thread: Problem installing port
- Index(es):
Relevant Pages
|