Created
March 5, 2026 16:57
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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