mirror of
https://bitbucket.org/gwenhael/cubietruck-slackware.git
synced 2025-01-13 08:01:13 +01:00
add options to disable compression
This commit is contained in:
parent
a1832a9004
commit
f3bc618fa2
1 changed files with 8 additions and 2 deletions
10
build.sh
10
build.sh
|
@ -36,6 +36,10 @@ do
|
||||||
CUBIETRUCK_DISPLAY=$1
|
CUBIETRUCK_DISPLAY=$1
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
-gz | --compress )
|
||||||
|
shift
|
||||||
|
COMPRESS="true"
|
||||||
|
;;
|
||||||
-n | --image-name )
|
-n | --image-name )
|
||||||
shift
|
shift
|
||||||
IMG_NAME=$1
|
IMG_NAME=$1
|
||||||
|
@ -331,5 +335,7 @@ losetup -d $LOOP0
|
||||||
echo "cleaning"
|
echo "cleaning"
|
||||||
rm -r $DEST/output/sdcard/
|
rm -r $DEST/output/sdcard/
|
||||||
|
|
||||||
echo "compress image"
|
if [ "$COMPRESS" = "true" ]; then
|
||||||
gzip $DEST/output/*.raw
|
echo "compress image"
|
||||||
|
gzip $DEST/output/*.raw
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue