Rename the downloaded onerng package

This commit is contained in:
Bob Mottram 2015-06-14 19:28:30 +01:00
parent cc9968dade
commit f16595ee83
1 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,7 @@ HWRNG_TYPE=
# Download location for OneRNG driver # Download location for OneRNG driver
ONERNG_PACKAGE="onerng_3.3-1_all.deb" ONERNG_PACKAGE="onerng_3.3-1_all.deb"
ONERNG_PACKAGE_DOWNLOAD="https://github.com/OneRNG/onerng.github.io/blob/master/sw/$ONERNG_PACKAGE" ONERNG_PACKAGE_DOWNLOAD="https://github.com/OneRNG/onerng.github.io/blob/master/sw/$ONERNG_PACKAGE?raw=true"
# Hash for OneRNG driver # Hash for OneRNG driver
ONERNG_PACKAGE_HASH='a9801993ffef1cc19778f5613f1837aca4212a0d299d75bd524134f865774928' ONERNG_PACKAGE_HASH='a9801993ffef1cc19778f5613f1837aca4212a0d299d75bd524134f865774928'
@ -4766,6 +4766,7 @@ function install_onerng {
# Download the package # Download the package
if [ ! -f $ONERNG_PACKAGE ]; then if [ ! -f $ONERNG_PACKAGE ]; then
wget $ONERNG_PACKAGE_DOWNLOAD wget $ONERNG_PACKAGE_DOWNLOAD
mv "$ONERNG_PACKAGE?raw=true" $ONERNG_PACKAGE
fi fi
if [ ! -f $ONERNG_PACKAGE ]; then if [ ! -f $ONERNG_PACKAGE ]; then
echo "OneRNG package could not be downloaded" echo "OneRNG package could not be downloaded"