[PATCH 3/7] defaultenv/bin/update: let /env/config set default values

Eric Bénard eric at eukrea.com
Fri Jan 7 11:35:29 EST 2011


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 at eukrea.com>
---
 defaultenv/bin/update |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/defaultenv/bin/update b/defaultenv/bin/update
index 29c240b..5b35df1 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
-- 
1.7.3.4




More information about the barebox mailing list