diff options
Diffstat (limited to 'defaultenv/bin')
-rw-r--r-- | defaultenv/bin/_update | 9 | ||||
-rw-r--r-- | defaultenv/bin/update | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/defaultenv/bin/_update b/defaultenv/bin/_update index 87e6922326..f736acc744 100644 --- a/defaultenv/bin/_update +++ b/defaultenv/bin/_update @@ -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 diff --git a/defaultenv/bin/update b/defaultenv/bin/update index 3601177308..29c240b784 100644 --- a/defaultenv/bin/update +++ b/defaultenv/bin/update @@ -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 |