/etc/rc.conf: gateway_enable: not found

When I set in
/etc/rc.conf

Code:
gateway_enable = "NO"

the computer spams a lot when booting:

Code:
/etc/rc.conf: gateway_enable: not found

I would rather have expected that this is accepted rather quietly, just as when setting the value "YES".

I am now confused.
 
No space(s) between gateway_enable and =. rc.conf is a shell script that gets sourced several times by the rc(8) scripts (that's why it's spamming the error).
 
man sysrc
It's a utility that safely/correctly adds variables to the rc.conf files; helps one avoid "minor errors" like the spacing (which I know I've done once or twice)
 
Back
Top