From owner-freebsd-current Mon Mar 22 5:59:19 1999 Delivered-To: freebsd-current@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id D2C5514F95 for ; Mon, 22 Mar 1999 05:59:17 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from newsguy.com by peach.ocn.ne.jp (8.9.1a/OCN) id WAA00606; Mon, 22 Mar 1999 22:58:54 +0900 (JST) Message-ID: <36F64C3D.9369B963@newsguy.com> Date: Mon, 22 Mar 1999 22:57:17 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.5 [en] (Win98; I) X-Accept-Language: pt-BR,ja MIME-Version: 1.0 To: John Baldwin Cc: Richard Wackerbarth , "Jordan K. Hubbard" , current@FreeBSD.ORG Subject: Re: /etc/rc.conf, take 46! References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Baldwin wrote: > > However, the original definition has already been used once the /etc/rc.conf > has been read. Unless you are going to call the for loop twice, once after > /etc/defaults/rc.conf to include /etc/rc.conf and once after /etc/rc.conf to > include the extra stuff you define, your changes to ${rc_conf_files} in > /etc/rc.conf will never take effect. Make a sucking function (or separate script), call it recursively for each time rc_conf_files change. #!/bin/sh for file in $1 do . $file if [ "${rc_conf_files}X" != "$*X" ] then . $0 "${rc_conf_files}" fi done -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org "What happened?" "It moved, sir!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message