From: vimacs Date: Mon, 21 Dec 2009 22:38:53 +0000 (+0100) Subject: check if squashfs version is > 4 X-Git-Tag: Release-2010-05/1~139 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac229e13aaa962754862c48092c52b26dd17bf6e;p=pandora-libraries.git check if squashfs version is > 4 modified: testdata/scripts/pnd_make.sh --- diff --git a/testdata/scripts/pnd_make.sh b/testdata/scripts/pnd_make.sh index 1ccbfee..3a0ce2c 100755 --- a/testdata/scripts/pnd_make.sh +++ b/testdata/scripts/pnd_make.sh @@ -41,7 +41,11 @@ if [ ! -f $PXML ]; then echo "$PXML doesnt exist"; exit 1; fi #check if pxml act if [ ! $SQUASH ]; then mkisofs -o $PNDNAME.iso -R $FOLDER else - mksquashfs $FOLDER $PNDNAME.iso + if [ $(mksquashfs -version | awk '{if ($3 >= 4) print 1}') = 1 ]; then + echo "your squashfs version is older then version 4, pleas upgrade to 4.0 or later" + exit 1 + fi + mksquashfs -no-recovery -nopad $FOLDER $PNDNAME.iso fi #append pxml to iso cat $PNDNAME.iso $PXML > $PNDNAME