Date: Wed, 19 Dec 2012 11:10:40 -0800 From: Garrett Cooper <yanegomi@gmail.com> To: Ian Lepore <freebsd@damnhippie.dyndns.org> Cc: svn-src-head@freebsd.org, Andrey Zonov <zont@freebsd.org>, src-committers@freebsd.org, Xin LI <delphij@freebsd.org>, svn-src-all@freebsd.org Subject: Re: svn commit: r244198 - in head: etc/rc.d sbin/sysctl Message-ID: <CAGH67wRfd0CcHZA5kwmdnyyTvinXyXubqVuX_FLwJ1RuMH=ZnA@mail.gmail.com> In-Reply-To: <1355931456.1198.203.camel@revolution.hippie.lan> References: <201212132332.qBDNWmK4037503@svn.freebsd.org> <50D1D720.80206@FreeBSD.org> <1355931456.1198.203.camel@revolution.hippie.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 19, 2012 at 7:37 AM, Ian Lepore <freebsd@damnhippie.dyndns.org> wrote: ... > Instead of running sysctl a bunch of times, how about something > conceptually similar to > > cat /etc/sysctl.d/* /etc/sysctl.conf | sysctl -f - > > Along with this (untested) patch to make sysctl understand "-f -". > > Hmmm, is /dev/stdin available as early as sysctl.conf runs? If not, the > attached patch isn't going to work. Why not just make sysctl understand multiple -f options? You're probably going to run into more problems parsing from /dev/stdin and it's going to obfuscate things a lot dealing with which file came last, feeding back diagnostic info, etc. Please don't "linuxise" this tool. Thanks, -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGH67wRfd0CcHZA5kwmdnyyTvinXyXubqVuX_FLwJ1RuMH=ZnA>