summaryrefslogtreecommitdiffstats
path: root/defaultenv
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-09-03 20:02:31 +0800
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-02 08:57:07 +0200
commit4676721b30274f318a56672b34d394e1df365a3d (patch)
treeb3ef1f9137d09bb9980300d5d70e01f0462097f7 /defaultenv
parent9b22271b7bc1aff16e71705be1a2cc69e9d82089 (diff)
downloadbarebox-4676721b30274f318a56672b34d394e1df365a3d.tar.gz
defaultenv: enable glovalvar support
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 <plagnioj@jcrosoft.com>
Diffstat (limited to 'defaultenv')
-rw-r--r--defaultenv/bin/init2
1 files changed, 2 insertions, 0 deletions
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