From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 4.mo5.mail-out.ovh.net ([178.33.111.247] helo=mo5.mail-out.ovh.net) by casper.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TCCOe-0006EA-QH for barebox@lists.infradead.org; Thu, 13 Sep 2012 16:36:10 +0000 Received: from mail404.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo5.mail-out.ovh.net (Postfix) with SMTP id 0708DFFAA9C for ; Thu, 13 Sep 2012 18:37:43 +0200 (CEST) From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 13 Sep 2012 18:29:23 +0200 Message-Id: <1347553768-19030-2-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <1347553768-19030-1-git-send-email-plagnioj@jcrosoft.com> References: <20120913155532.GA9153@game.jcrosoft.org> <1347553768-19030-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/7] defaultenv: enable glovalvar support To: barebox@lists.infradead.org This will allow to do not have 2 set of var for defaultenv and the new defaultenv-2. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/Kconfig | 1 + defaultenv/bin/init | 2 ++ 2 files changed, 3 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index b97392c..9378783 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -575,6 +575,7 @@ config DEFAULT_ENVIRONMENT_GENERIC select CMD_CRC select CMD_CRC_CMP select CMD_AUTOMOUNT if HAVE_DEFAULT_ENVIRONMENT_NEW + select CMD_GLOBAL prompt "Default environment generic" help With this option barebox will use the generic default diff --git a/defaultenv/bin/init b/defaultenv/bin/init index f535e37..adb3c43 100644 --- a/defaultenv/bin/init +++ b/defaultenv/bin/init @@ -3,6 +3,8 @@ PATH=/env/bin export PATH +global hostname + . /env/config if [ -e /dev/nor0 -a -n "$nor_parts" ]; then addpart /dev/nor0 $nor_parts -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox