Blocklist downloader
Quite a few softwares utilizes blocklist in bluetack format. I’m using blocklist for my bittorrent applications and needed an easy way of downloading and unpacking the blocklist. Call me lazy if you like. Wrote a simple script to download the blocklist and unpack it.
Download: blocklist-downloader.sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/ffp/bin/sh ####################################### # Blocklist downloader # Author: shadowandy.sg[AT]gmail.com # Web: https://www.shadowandy.net ######################################## # Setting the path DOWNLOAD_DEST=/mnt/HD_a2/.transmission-daemon/blocklists ##### You should not need to edit anything below ##### cd ${DOWNLOAD_DEST} # backing up existing blocklist (if any) for blocklist in "level1" "level1.bin" do if test -f ${blocklist}; then echo "Backing up ${blocklist}..." mv -f ${blocklist} ${blocklist}.bak fi done # downloading the blocklist echo "Downloading new blocklist..." curl --silent http://download.m0k.org/transmission/files/level1.gz > level1.gz echo "Unpacking new blocklist..." gunzip level1.gz echo "Done. Blocklist downloaded and unpacked to ${DOWNLOAD_DEST}" |