diff --git a/defaultenv/bin/_update_help b/defaultenv/bin/_update_help index 5e3ca45..98096da 100644 --- a/defaultenv/bin/_update_help +++ b/defaultenv/bin/_update_help @@ -1,6 +1,6 @@ #!/bin/sh -echo "usage: update -t -d [-m tftp|xmodem] [-f imagename] -c" +echo "usage: update -t -d [-m tftp|xmodem] [-f imagename] -c" echo "update tools." echo "" echo "options" @@ -11,3 +11,4 @@ echo "type update -t rootfs -d [-m tftp|xmodem] [-f imagename] to update rootfs into flash" echo "type update -t barebox -d [-m tftp|xmodem] [-f imagename] to update barebox into flash" echo "type update -t bareboxenv -d [-m tftp|xmodem] [-f imagename] to update bareboxenv into flash" +echo "type update -t xload -d [-m tftp|xmodem] [-f imagename] to update xload into flash" diff --git a/defaultenv/bin/update b/defaultenv/bin/update index 7c37c36..55ac10b 100644 --- a/defaultenv/bin/update +++ b/defaultenv/bin/update @@ -40,6 +40,8 @@ if [ x${image} = x ]; then image=bareboxenv.bin fi +elif [ x${type} = xxload ]; then + image=$xloadimage else . /env/bin/_update_help exit 1