|
|
|
@ -7,7 +7,7 @@ if [ ! -d "patterns" ]; then |
|
|
|
rm -f ./bcg729-patterns.zip |
|
|
|
# no pattern directory: download it from |
|
|
|
# http://www.belledonne-communications.com/downloads/bcg729-patterns.zip |
|
|
|
wget http://www.belledonne-communications.com/downloads/bcg729-patterns.zip |
|
|
|
wget http://www.belledonne-communications.com/bc-downloads/bcg729-patterns.zip |
|
|
|
if [ -e bcg729-patterns.zip ]; then |
|
|
|
# check file |
|
|
|
if [[ `openssl md5 bcg729-patterns.zip | grep -c ee5702e17cff8484d1396e6f23f84305` -ne 0 ]]; then |
|
|
|
@ -19,11 +19,11 @@ if [ ! -d "patterns" ]; then |
|
|
|
rm bcg729-patterns.zip |
|
|
|
fi |
|
|
|
else |
|
|
|
echo "Error: bad checksum on bcg729-patterns.zip downloaded from http://www.belledonne-communications.com/downloads/.\nTry again" |
|
|
|
echo "Error: bad checksum on bcg729-patterns.zip downloaded from http://www.belledonne-communications.com/bc-downloads/.\nTry again" |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
else |
|
|
|
echo "Error: Unable to download bcg729-patterns.zip pattern archive from http://www.belledonne-communications.com/downloads/" |
|
|
|
echo "Error: Unable to download bcg729-patterns.zip pattern archive from http://www.belledonne-communications.com/bc-downloads/" |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
fi |
|
|
|
|