X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=testdata%2Fscripts%2Fpnd_make.sh;h=3a0ce2cd1468c0adbe17ff7e891cd45e0d3eaac2;hb=303fbe209ab8aa5f26224a18873d84e28fa8c305;hp=1ccbfee0a823089fbd072e52e224e8f6b6e5acbb;hpb=c2c48939a1eb51547ce8ee7a9506cd9eb3d2a112;p=pandora-libraries.git 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