Skip to content

Instantly share code, notes, and snippets.

@schorschii
Created March 5, 2026 16:57
Show Gist options
  • Select an option

  • Save schorschii/ca19271d6fb2a176ef3266773d56d85e to your computer and use it in GitHub Desktop.

Select an option

Save schorschii/ca19271d6fb2a176ef3266773d56d85e to your computer and use it in GitHub Desktop.
Automatically keep your KEYDB.cfg up-to-date for Bluray playback on Linux.
#!/bin/bash
URL="http://fvonline-db.bplaced.net/fv_download.php?lang=eng"
FILE_ARCHIVE="keydb.cfg"
FILE_TARGET="KEYDB.cfg"
mkdir -p ~/.config/aacs
cd ~/.config/aacs
wget -O "$FILE_ARCHIVE.part" "$URL"
if [ "$?" != "0" ]; then
echo "ERROR downloading $URL!" >/dev/stderr
exit 1
fi
unzip "$FILE_ARCHIVE.part" "$FILE_ARCHIVE"
if [ "$?" != "0" ]; then
echo "ERROR unzipping $FILE_ARCHIVE.part!" >/dev/stderr
exit 2
fi
mv "$FILE_ARCHIVE" "$FILE_TARGET"
rm "$FILE_ARCHIVE.part"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment