Date: Fri, 25 Oct 2002 17:30:02 -0700 (PDT) From: Bill Fenner <fenner@research.att.com> To: freebsd-bugs@FreeBSD.org Subject: Re: conf/44282: /etc/rc.d/sysctl script works incorrectly in case of non-existent MIB Message-ID: <200210260030.g9Q0U2gY000288@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/44282; it has been noted by GNATS. From: Bill Fenner <fenner@research.att.com> To: freebsd-gnats-submit@FreeBSD.org, mokr@mokr.net Cc: Subject: Re: conf/44282: /etc/rc.d/sysctl script works incorrectly in case of non-existent MIB Date: Fri, 25 Oct 2002 17:24:19 -0700 This appears to be an attempt to preserve /etc/rc.sysctl's original functionality, which was to run twice -- the early run would not complain about illegal sysctl variables, presumably to allow sysctl.conf to contain variables that were in modules that would be loaded later. If one runs "/etc/rc.d/sysctl lastload", you get the right behavior -- however, there doesn't seem to be any provision to ever run "/etc/rc.d/sysctl lastload". I don't know enough about the rc.d system to know how to fix it -- perhaps an /etc/rc.d/sysctllast which runs /etc/rc.d/sysctl lastload? Alternately, if we are going to abandon the multiple sysctl.conf loads, the elif should just be turned into an else, the additional test of $? is not necessary. Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210260030.g9Q0U2gY000288>