Is /etc/rc.conf scriptable?

Ivan Voras ivoras at
Tue Feb 1 13:51:37 UTC 2011

On 01/02/2011 13:35, Yue Wu wrote:
> Hi list,
> I'm trying to do something to make rc.conf can act conditionally

Technically, yes it can be done, but you shouldn't. It is in essence a 
shell script as it is sourced by other shell scripts but that's only 
because that approach is easiest to implement. Other tools may read 
rc.conf and they could break if they find something unexpected there.

More information about the freebsd-stable mailing list