diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2015-04-15 13:27:28 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2015-05-12 10:04:35 +0200 |
commit | d1499b6a4d0c5c0935780a9ef7d460a5e4da586a (patch) | |
tree | d2a242ed8bcac89819b39923e4a1511aeba9e65b /recipes/images/files/library/imx6/update.sh | |
parent | ea0553189c81bebe76e7e83a018970684c61d6f1 (diff) |
trdx-image-fstype: T30, iMX6: remove default target dir
Make the option -o mandatary, used to default to /media/KERNEL
While at it synchronize the files again.
Diffstat (limited to 'recipes/images/files/library/imx6/update.sh')
-rwxr-xr-x | recipes/images/files/library/imx6/update.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/recipes/images/files/library/imx6/update.sh b/recipes/images/files/library/imx6/update.sh index c9a8ed5..d08ebca 100755 --- a/recipes/images/files/library/imx6/update.sh +++ b/recipes/images/files/library/imx6/update.sh @@ -50,9 +50,7 @@ Usage() echo "" echo "-d : use USB connection to copy and execute U-Boot to the module's RAM" echo "-h : Prints this message" - echo "-o directory : output directory, defaults to /media/KERNEL" - echo " if this is on a SD card, it should be the" - echo " first partition formated with VFAT" + echo "-o directory : output directory" echo "" echo "Example \"./update.sh\" copies the requiered files to /media/KERNEL/" echo "Example \"./update.sh -o /srv/tftp/\" copies the requiered files to /srv/tftp/" @@ -86,7 +84,12 @@ while getopts "dho:" Option ; do esac done -# autotect MODTYPE from from rootfs directory +if [ "$OUT_DIR" = "" ] && [ "$UBOOT_RECOVERY" = "0" ] ; then + Usage + exit 0 +fi + +# auto detect MODTYPE from rootfs directory CNT=`grep -ic "Colibri.iMX6" rootfs/etc/issue || true` if [ "$CNT" -ge 1 ] ; then echo "Colibri iMX6 rootfs detected" |