Date: Thu, 26 Dec 2013 23:40:08 +0100 From: Polytropon <freebsd@edvax.de> To: g8kbvdave@googlemail.com Cc: freebsd-questions@freebsd.org Subject: Re: No System sources? (update) Message-ID: <20131226234008.0777c00e.freebsd@edvax.de> In-Reply-To: <52BC3261.31622.35C3BC@g8kbvdave.gmail.com> References: <52AF4D2A.13679.1A7A5A9@g8kbvdave.gmail.com> <52B7135F.16024.96D587C@g8kbvdave.gmail.com> <alpine.BSF.2.00.1312221048280.3746@wonkity.com> <52BC3261.31622.35C3BC@g8kbvdave.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 26 Dec 2013 13:42:57 -0000, g8kbvdave@googlemail.com wrote: > > On Sun, 22 Dec 2013, g8kbvdave@googlemail.com wrote: > > > > > Update: > > > > > > I've found (after a LOT of reading...) I can do what I need (enable pps support > > > in the kernel) without recompiling, by creating:- > > > > > > /boot/loader.conf.local > > > > > > with an entry:- > > > > > > pps_load="YES" > > > > > > Then, kldstat shows that module (pps.ko) is loaded after boot. > > > > That line can be added be added to /boot/loader.conf, no need for a > > separate .local file. > > Hi Warren. > > Only used /boot/loader.conf.local, as from what I read, it is more "machine > specific", so applies for all users regardless. But otherwise OK. The .local separation can be applied to certain files in the FreeBSD system, however this is mostly for organisational aspects of system administration, there is, as far as I know, no functional aspect as those files are sourced the same way as the "normal" ones. If you compare to OpenBSD, there you'll find a comparable approach, even though there's a stronger emphasize on keeping things separated (for example system settings go to /etc/rc.conf and should probably not be altered, local settings go to /etc/rc.conf.local). In FreeBSD, there's also /etc/rc.local to "extend" /etc/rc, as well as /etc/rc.shutdown.local respectively, even though those can be considered "present for historical reasons" (rc.conf.local content to rc.conf, rc.(shutdown.)local content to rc.d-style scripts), but they still work. >From "man loader.conf", the FILES section: /boot/defaults/loader.conf default settings -- do not change this file. /boot/loader.4th defines the commands used by loader to read and process loader.conf. /boot/loader.conf user defined settings. /boot/loader.conf.local machine-specific settings for sites with a common loader.conf. In comparison, from "man rc.conf": The /etc/rc.conf file is included from the file /etc/defaults/rc.conf, which specifies the default settings for all the available options. Options need only be specified in /etc/rc.conf when the system adminis- trator wishes to override these defaults. The file /etc/rc.conf.local is used to override settings in /etc/rc.conf for historical reasons. [...] Also see the rc_conf_files variable below. Summary: There's nothing wrong in using the .local files, as long as you remember what you've done. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131226234008.0777c00e.freebsd>