From owner-freebsd-questions@FreeBSD.ORG Tue Sep 21 13:51:34 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43FA416A4CE for ; Tue, 21 Sep 2004 13:51:34 +0000 (GMT) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4949943D41 for ; Tue, 21 Sep 2004 13:51:33 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from orion.daedalusnetworks.priv (host5.bedc.ondsl.gr [62.103.39.229])i8LDpQeV024655; Tue, 21 Sep 2004 16:51:27 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) i8LDpHRq043494; Tue, 21 Sep 2004 16:51:17 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost)i8LDpHP4043493; Tue, 21 Sep 2004 16:51:17 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 21 Sep 2004 16:51:17 +0300 From: Giorgos Keramidas To: Markie Message-ID: <20040921135117.GA43474@orion.daedalusnetworks.priv> References: <01bb01c49f69$48c66300$f800000a@laptop> <20040921093647.GC4451@orion.daedalusnetworks.priv> <022001c49fdd$714ac1d0$f800000a@laptop> <20040921132448.GA43059@orion.daedalusnetworks.priv> <023501c49fe0$9b19da70$f800000a@laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <023501c49fe0$9b19da70$f800000a@laptop> cc: freebsd-questions@freebsd.org Subject: Re: reload rc.conf during boot process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 13:51:34 -0000 On 2004-09-21 14:40, Markie wrote: > I was just looking at that diff you attached. I think I understand it near > enough, but just before the esac is that like a default: style part? So if > nothing matches, i.e if the script isn't called selectcf, then it'll just > run the script and not reload rc.conf? Wouldn't I need a run_rc_script > before the unset _rc_conf_loaded, to actually run my selectcf script? :-) It's there already. I've just used a trick with md5(1) to check if the file rc.conf changes and you missed it because it's hidden between two other lines. Just above the body of the if-block you're reading I had added the following: % + _sum_before=`md5 /etc/rc.conf` % + run_rc_script ${_rc_elem} ${_boot} % + _sum_after=`md5 /etc/rc.conf`