defaultenv/udpate: fix typo in default barebox image name
PATCH 1/2 defaultenv/udpate: fix typo in default barebox image name
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
--- defaultenv/bin/update | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
defaultenv/bin/update +1 -1
@@ -33,7 +33,7 @@ elif [ x${type} = xrootfs ]; then elif [ x${type} = xbarebox ]; then image=$bareboximage if [ x${image} = x ]; then - imamge=barebox.bin + image=barebox.bin fi else . /env/bin/_update_help
Signature · 7 lines
1.7.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/2 defaultenv/udpate: in xmodem mode load the data before erasing
and abort the update if loadb failed or cancelled
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
--- defaultenv/bin/_update | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
defaultenv/bin/_update +8 -1
@@ -22,6 +22,14 @@ if [ x$mode = xtftp ]; then fi fi +if [ x$mode = xxmodem ]; then + loadb -f $image -c + if [ $? -ne 0 ] ; then + echo "loadb failed or cancelled! Update aborted." + exit 1 + fi +fi + unprotect $part echo
@@ -36,7 +44,6 @@ echo if [ x$mode = xtftp ]; then tftp $image $part else - loadb -f $image -c cp $image $part fi
Signature · 7 lines
1.7.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox