From f3bc618fa2fad7004a61046170fa4c8fa3ca0c50 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 28 Feb 2014 08:42:21 +0100 Subject: [PATCH] add options to disable compression --- build.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 429d5ff..28d1b10 100755 --- a/build.sh +++ b/build.sh @@ -36,6 +36,10 @@ do CUBIETRUCK_DISPLAY=$1 shift ;; + -gz | --compress ) + shift + COMPRESS="true" + ;; -n | --image-name ) shift IMG_NAME=$1 @@ -331,5 +335,7 @@ losetup -d $LOOP0 echo "cleaning" rm -r $DEST/output/sdcard/ -echo "compress image" -gzip $DEST/output/*.raw +if [ "$COMPRESS" = "true" ]; then + echo "compress image" + gzip $DEST/output/*.raw +fi