summaryrefslogtreecommitdiff
path: root/recipes/images/files/library/fwd_eth.scr
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/images/files/library/fwd_eth.scr')
-rw-r--r--recipes/images/files/library/fwd_eth.scr4
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/images/files/library/fwd_eth.scr b/recipes/images/files/library/fwd_eth.scr
index 18ae3ad..8b35af0 100644
--- a/recipes/images/files/library/fwd_eth.scr
+++ b/recipes/images/files/library/fwd_eth.scr
@@ -1,3 +1,3 @@
#the update.sh script renames this. fwd_eth.scr -> ../flash_eth.img
-tftpboot ${loadaddr} "${board_name}/flash_eth.img"
-source ${loadaddr}
+test -n ${board_name} || echo "board_name env not set!" && exit
+tftpboot ${loadaddr} "${board_name}/flash_eth.img" && source ${loadaddr}