summaryrefslogtreecommitdiffstats
path: root/defaultenv
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2011-01-07 17:35:29 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-01-08 13:26:48 +0100
commitec604a5448c0f208061b24583c162f51218ff42d (patch)
tree50b81c402d8e3599384e50dfdc28fd88ea8e7dbe /defaultenv
parentd15cfafeef8f99ff1a47e77362d0adf1b07f26ae (diff)
downloadbarebox-ec604a5448c0f208061b24583c162f51218ff42d.tar.gz
barebox-ec604a5448c0f208061b24583c162f51218ff42d.tar.xz
defaultenv/bin/update: let /env/config set default values
this patch allows for example device_type to be fixed in /env/config (useful for configurations with only one memory type). Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv')
-rw-r--r--defaultenv/bin/update4
1 files changed, 2 insertions, 2 deletions
diff --git a/defaultenv/bin/update b/defaultenv/bin/update
index 29c240b78..5b35df131 100644
--- a/defaultenv/bin/update
+++ b/defaultenv/bin/update
@@ -1,12 +1,12 @@
#!/bin/sh
-. /env/config
-
type=""
device_type=""
check=n
mode=tftp
+. /env/config
+
while getopt "ht:d:f:m:c" Option
do
if [ ${Option} = t ]; then