Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jan 2008 01:57:50 -0600
From:      "illoai@gmail.com" <illoai@gmail.com>
To:        DAve <dave.list@pixelhammer.com>
Cc:        User questions <freebsd-questions@freebsd.org>
Subject:   Re: How to not start syslogd
Message-ID:  <d7195cff0801022357i43c9420du41ebc10eb4bf89f@mail.gmail.com>
In-Reply-To: <4779071A.2020506@pixelhammer.com>
References:  <542F8326-4A77-42AA-9FFF-CB8C6AD8756A@goldmark.org> <20071230234432.3389a010.wmoran@potentialtech.com> <3B585815-EC68-400E-901D-A594402DD874@goldmark.org> <4779071A.2020506@pixelhammer.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 31/12/2007, DAve <dave.list@pixelhammer.com> wrote:

> Small hint shown to me many years ago when enabling things in rc.conf.
> If I want to startup ipfilter for example (trimmed to avoid wrapping).
>
> bash-2.05b# cat /etc/defaults/rc.conf | grep ^ipfilter
>
> Returns the following,
> ipfilter_enable="NO"            # Set to YES to enable ipfilter
> ipfilter_program="/sbin/ipf"    # where the ipfilter program lives
> ipfilter_rules="/etc/ipf.rules" # rules definition file for ipfilter,
> ipfilter_flags=""               # additional flags for ipfilter
>
> If it looks like what you want then write it into your running rc.conf,
>
> cat /etc/defaults/rc.conf | grep ^ipfilter >> /etc/rc.conf
>

cat not needed, as grep accepts filenames
and < as in
grep ^ipfilter /etc/defaults/rc.conf
or the above with | $PAGER appended
grep ^ipfilter /etc/defaults/rc.conf >> /etc/rc.conf
grep ^allsc < /etc/defaults/rc.conf | less

sorry, just trying to prevent cat abuse

-- 
--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d7195cff0801022357i43c9420du41ebc10eb4bf89f>