From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dMrCz-00080T-4F for barebox@lists.infradead.org; Mon, 19 Jun 2017 07:34:51 +0000 Date: Mon, 19 Jun 2017 09:34:27 +0200 From: Sascha Hauer Message-ID: <20170619073427.oja6l4ebvqjc3fp7@pengutronix.de> References: <1497361020-33828-1-git-send-email-d.schultz@phytec.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1497361020-33828-1-git-send-email-d.schultz@phytec.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] defaultenv: bin: init: Add sourcing of config-expansions To: Daniel Schultz Cc: barebox@lists.infradead.org On Tue, Jun 13, 2017 at 03:37:00PM +0200, Daniel Schultz wrote: > This patch adds a further layer to the config hierarchy. It allows a > dynamic configuration of expansions. > > Signed-off-by: Daniel Schultz > --- > defaultenv/defaultenv-2-base/bin/init | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/defaultenv/defaultenv-2-base/bin/init b/defaultenv/defaultenv-2-base/bin/init > index 7af3c7d..a93ea58 100644 > --- a/defaultenv/defaultenv-2-base/bin/init > +++ b/defaultenv/defaultenv-2-base/bin/init > @@ -25,6 +25,7 @@ magicvar -a global.allow_color "Allow color on the console (boolean)" > [ -z "${global.editcmd}" ] && global.editcmd=sedit > > [ -e /env/config-board ] && /env/config-board > +[ -e /env/config-expansions ] && /env/config-expansions I read the last thread again and I think my question remains unanswered. Why can't you put the config-expansions to /env/init/ and let it be executed automatically without changing /bin/init? Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox