[PATCH 15/16] eukrea_cpuimx25&35: update init_board

Eric Bénard eric at eukrea.com
Thu May 17 11:46:17 EDT 2012


we shouldn't exit this script in case the MAC address is not set.

Signed-off-by: Eric Bénard <eric at eukrea.com>
---
 arch/arm/boards/eukrea_cpuimx25/env/bin/init_board |    4 ++--
 arch/arm/boards/eukrea_cpuimx35/env/bin/init_board |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boards/eukrea_cpuimx25/env/bin/init_board b/arch/arm/boards/eukrea_cpuimx25/env/bin/init_board
index 3c4b1ea..ff3365d 100644
--- a/arch/arm/boards/eukrea_cpuimx25/env/bin/init_board
+++ b/arch/arm/boards/eukrea_cpuimx25/env/bin/init_board
@@ -22,9 +22,9 @@ if [ $? -eq 0 ]; then
 		if [ $? -eq 0 ]; then
 			usbserial
 			autoboot_timeout=60
-			exit
+		else
+			reset
 		fi
-		reset
 	else
 		autoboot_timeout=28
 	fi
diff --git a/arch/arm/boards/eukrea_cpuimx35/env/bin/init_board b/arch/arm/boards/eukrea_cpuimx35/env/bin/init_board
index 7659cc4..89fd9a9 100644
--- a/arch/arm/boards/eukrea_cpuimx35/env/bin/init_board
+++ b/arch/arm/boards/eukrea_cpuimx35/env/bin/init_board
@@ -24,9 +24,9 @@ if [ $? -eq 0 ]; then
 		if [ $? -eq 0 ]; then
 			usbserial
 			autoboot_timeout=60
-			exit
+		else
+			reset
 		fi
-		reset
 	else
 		autoboot_timeout=28
 	fi
-- 
1.7.7.6




More information about the barebox mailing list