Date: Tue, 28 Aug 2001 23:41:01 -0700 From: "Kory Hamzeh" <kory@avatar.com> To: "Tony Landells" <ahl@austclear.com.au> Cc: <freebsd-questions@FreeBSD.ORG> Subject: RE: Setting sysctl variables at boot time Message-ID: <009c01c13055$919fb1c0$14ce21c7@avatar.com> In-Reply-To: <200108290228.MAA21431@tungsten.austclear.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Tony, Putting in /boot/load.conf.local worked! Thanks. Putting in /boot/defaults/loader.conf or /boot/loader.conf does not however. I'm sure there is a very good reason for that. Thanks for your help! Kory > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > kory@avatar.com said: > > That worked for the vfs.vmiodirenable, which can be enabled at > > anytime. However, for the "hw.ata.wc", I get an error for sysctl > > saying that it is read-only. According to the FBSD Handbook, it must > > be turned on before filesystems are mounted. The file /etc/sysctl.conf > > is executed right before you go into multiuser mode, which I think it > > too late and that probably why I'm getting that error. > > > There are some kernel variables that are being set (although they are > > commented out) in /boot/defaults/loader.conf. I added my stuff in > > there, but like I said, it seems to be ignored. > > I put the following in /boot/loader.conf.local (which is basically just > an extension for /boot/loader.conf): > > hw.ata.wc="1" > > and rebooted, and now I have: > > freddo# sysctl hw.ata.wc > hw.ata.wc: 1 > > So if it doesn't work for you, I'm not sure what to suggest... After > that, you get into a long string of /boot/loader.rc, /boot/loader.4th, > ... and my Forth programming ability is pretty much non-existent. > > Tony To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?009c01c13055$919fb1c0$14ce21c7>