Commit 98c5ed5c authored by Nicolas Perrin's avatar Nicolas Perrin

Add random source mirror

parent 70a5082f
......@@ -3,18 +3,22 @@
KEYDB_DIR="/etc/xdg/aacs"
KEYDB_FILENAME="KEYDB.cfg"
KEYDB_URL="http://vlc-aacs.whoknowsmy.name/files"
RANDOM12=`seq 1 2 | sort -R | head -n 1`
KEYDB_URL1="http://vlc-aacs.whoknowsmy.name/files"
KEYDB_URL2="http://vlc-bluray.whoknowsmy.name/files"
KEYDB_URL=`eval "echo \\${KEYDB_URL${RANDOM12}}"`
echo -ne "\n *************************************\n"
if [ ! -f $KEYDB_DIR/$KEYDB_FILENAME ]; then
mkdir -p $KEYDB_DIR
else
echo -ne " Backup old $KEYDB_DIR/$KEYDB_FILENAME to $KEYDB_DIR/$KEYDB_FILENAME.back.\n"
echo -ne " Backup $KEYDB_DIR/$KEYDB_FILENAME to $KEYDB_DIR/$KEYDB_FILENAME.back\n"
cp $KEYDB_DIR/$KEYDB_FILENAME $KEYDB_DIR/$KEYDB_FILENAME.back
echo -ne " *************************************\n"
fi
echo -ne " Downloading KEYDB.cfg...\n"
wget $KEYDB_URL/$KEYDB_FILENAME -O $KEYDB_DIR/$KEYDB_FILENAME
echo -ne "\n *************************************\n"
echo -ne " *************************************\n"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment