I'm attempting to script (bash) the post installation settings of FreeBSD.
I'm trying to programmatically write the settings to /etc/rc.conf, /boot/loader.conf, /etc/sysctl.conf, /etc/devfs.conf, etc. just to name a few. I'm even trying to programmatically create .profile and other skeleton files. Currently, I'm storing my values to be written in arrays, but as I build out these arrays, I'm finding that I have (right now) 12 arrays with a couple having at least 25 elements all in the bash script file.
Is there a better way to do this?
Is there a way to store settings for an install type that can be parsed as needed that's more efficient than arrays in a script? Any best practice advice anyone has on this topic is much appreciated.
I'm trying to programmatically write the settings to /etc/rc.conf, /boot/loader.conf, /etc/sysctl.conf, /etc/devfs.conf, etc. just to name a few. I'm even trying to programmatically create .profile and other skeleton files. Currently, I'm storing my values to be written in arrays, but as I build out these arrays, I'm finding that I have (right now) 12 arrays with a couple having at least 25 elements all in the bash script file.
Is there a better way to do this?
Is there a way to store settings for an install type that can be parsed as needed that's more efficient than arrays in a script? Any best practice advice anyone has on this topic is much appreciated.
Last edited by a moderator: