Format for entries in loader.conf.local
-
Obviously rookie question but I can't sort it.
As I read regarding entries or examples I'm seeing two different formats regarding "" in *.conf files.
Some have this:
hw.igc.0.rxd=”4096”
Some have this:
net.inet6.icmp6.rediraccept=1
When does loader.conf.local need the ""? When not?
I suppose its the same ? for all of the *.conf files that can be edited as I see both in examples for other .conf files.
-
In most cases either will work but the expected format is using speech marks:
All settings have the following format: variable="value"
See: https://www.freebsd.org/cgi/man.cgi?query=loader.conf
Steve
-
@stephenw10
Thanks for the link.So IF I was going to put this in a *.conf file it'd be:
net.inet6.icmp6.rediraccept="1"
-
Yes, that would work.
A value like that only has to resolve to logic true or false so I imagine there is more flexibility in the input. I've never really dug much deeper into it but I have used variations of
yes
,"yes"
andYES
successfully for variables in the past.Steve
-
I wondered if the 1 and 0's quotes not needed because they are simply enable/disable, yes, no, etc.
Now to look at variables.