Date: Tue, 12 Dec 2000 21:08:12 -0500 From: Jim Bloom <bloom@acm.org> To: Chris Browning <brownicm@prokyon.com> Cc: freebsd-ipfw@FreeBSD.ORG Subject: Re: suck in config vars in rc.firewall Message-ID: <3A36DA0C.1B005960@acm.org> References: <200012130147.UAA09876@mail3.lig.bellsouth.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Chris Browning wrote: > > This has been bugging me. Could someone explain why > rc.firewall seems to take config variables from > etc/defaults/rc.conf instead of /etc/rc.conf?... > > # Suck in the configuration variables. > if [ -f /etc/defaults/rc.conf ]; then > . /etc/defaults/rc.conf > elif [ -f /etc/rc.conf ]; then > . /etc/rc.conf > fi > > Is my understanding of if/elif/fi and test faulty? Thanks. Nope, your understanding is correct. What you missed is that /etc/defaults/rc.conf reads in /etc/rc.conf at the end. It takes a bit of variable following to see how this occurs. Jim Bloom bloom@acm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A36DA0C.1B005960>