diff --git a/defaultenv/bin/_update_help b/defaultenv/bin/_update_help index 2f6a2b3..5e3ca45 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" @@ -10,3 +10,4 @@ echo "type update -t kernel -d [-m tftp|xmodem] [-f imagename] to update kernel into flash" 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" diff --git a/defaultenv/bin/update b/defaultenv/bin/update index 5b35df1..43d3097 100644 --- a/defaultenv/bin/update +++ b/defaultenv/bin/update @@ -35,6 +35,11 @@ if [ x${image} = x ]; then image=barebox.bin fi +elif [ x${type} = xbareboxenv ]; then + image=$bareboxenvimage + if [ x${image} = x ]; then + image=bareboxenv.bin + fi else . /env/bin/_update_help exit 1