diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2015-11-03 01:23:54 +0100 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2015-11-03 01:51:17 +0100 |
commit | 238d2f4331b08749bbfcfa21cfd76a2acb4c106e (patch) | |
tree | b13e652ab4b805bd84abbe51fd92dcd19ee763df /recipes/images/files/library/fwd_eth.scr | |
parent | 1820151ae6735d6d3a31e4852b482b1f6a1953dc (diff) |
update.sh: source update script only if loaded successfully
Source the update script only if loading succeeded. This avoids
loops if board_name is not set. Also add a test if board_name is
really set since this variable is/was not available in older
U-Boots.
Diffstat (limited to 'recipes/images/files/library/fwd_eth.scr')
-rw-r--r-- | recipes/images/files/library/fwd_eth.scr | 4 |
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} |