Update common.sh

This commit is contained in:
Igor Pečovnik 2014-10-10 09:49:36 +02:00
parent 24eadcec1f
commit 784b4f3c07

View File

@ -202,6 +202,11 @@ creating_image (){
#--------------------------------------------------------------------------------------------------------------------------------
# Create and mount SD image
#--------------------------------------------------------------------------------------------------------------------------------
# check if previously build kernel file exits
if [ ! -f "$DEST/output/"$BOARD"_kernel_"$VER"_mod_head_fw.tar" ]; then
echo "Previously compiled kernel does not exits. Please choose compile=yes in configuration and run again!"
exit
fi
echo "------ Creating SD Images"
cd $DEST/output
# create 1G image and mount image to next free loop device