Subject: Re: /etc/rc.d/ scripts that depend on multiple rc configs
To: Luke Mewburn <lukem@netbsd.org>
From: Pavel Cahyna <pavel.cahyna@st.cuni.cz>
List: tech-userlevel
Date: 10/02/2003 11:33:05
On Thu, 02 Oct 2003 05:12:53 +0200, Luke Mewburn wrote:
> On Wed, Oct 01, 2003 at 07:14:37PM +0200, Nino Dehne wrote:
> | I worked around the problem by using one of 2 ways: | | 1. Modify
> /etc/rc.conf.d/ipnat to also contain ipfilter="YES" | 2. Change the
> relevant check in /etc/rc.d/ipnat to: | | load_rc_config ipfilter |
> if ! checkyesno ipfilter || [ ! -f /etc/ipf.conf ]; then | echo
> "Enabling ipfilter for NAT." | /sbin/ipf -E -Fa | fi | | I
> chose step 1 to be independant from modifying essential startup |
> scripts. I haven't rebooted since then. All of the above I gathered
> from | reading through rc scripts, i.e. it's not tested.
>
> Step 2 (or a varient) is probably the correct solution for rc.d/ipnat
> and other similar scripts.
>
> Can you please submit a PR for this problem so I don't forget about it?
I think you already forgot, because I have a PR open on this: bin/20786
:-)