diff --git a/src/freedombone b/src/freedombone
index 52789df9c64d5254879e4669b32bb50e0a9de6ca..99bba6137fde5be5e290d3afc52bee70cdd3e003 100755
--- a/src/freedombone
+++ b/src/freedombone
@@ -112,7 +112,7 @@ HWRNG_TYPE=
 
 # Download location for OneRNG driver
 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
 ONERNG_PACKAGE_HASH='a9801993ffef1cc19778f5613f1837aca4212a0d299d75bd524134f865774928'
 
@@ -4766,6 +4766,7 @@ function install_onerng {
   # Download the package
   if [ ! -f $ONERNG_PACKAGE ]; then
       wget $ONERNG_PACKAGE_DOWNLOAD
+      mv "$ONERNG_PACKAGE?raw=true" $ONERNG_PACKAGE
   fi
   if [ ! -f $ONERNG_PACKAGE ]; then
       echo "OneRNG package could not be downloaded"