From owner-freebsd-bugs Fri Oct 25 17:30: 4 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A654037B401 for ; Fri, 25 Oct 2002 17:30:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FD1D43E3B for ; Fri, 25 Oct 2002 17:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9Q0U3x3000289 for ; Fri, 25 Oct 2002 17:30:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9Q0U2gY000288; Fri, 25 Oct 2002 17:30:02 -0700 (PDT) Date: Fri, 25 Oct 2002 17:30:02 -0700 (PDT) Message-Id: <200210260030.g9Q0U2gY000288@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bill Fenner Subject: Re: conf/44282: /etc/rc.d/sysctl script works incorrectly in case of non-existent MIB Reply-To: Bill Fenner Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/44282; it has been noted by GNATS. From: Bill Fenner 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