WolfPack/update-transmission-blocklist
cxford f2864631fb Converting from Bazaar.
Old log:
------------------------------------------------------------
revno: 8
committer: root <root@aninix.net>
branch nick: WolfPack
timestamp: Tue 2016-07-19 13:52:29 -0500
message:
  Clearing some read statements
------------------------------------------------------------
revno: 7
committer: root <root@aninix.net>
branch nick: WolfPack
timestamp: Tue 2016-07-19 13:36:23 -0500
message:
  Fix for torrent protocol
------------------------------------------------------------
revno: 6
committer: dev <dev@aninix.net>
branch nick: WolfPack
timestamp: Mon 2016-07-18 10:23:17 -0500
message:
  Massive fixes; offloading updates; torrent function pup type updated
------------------------------------------------------------
revno: 5
committer: dev <dev@aninix.net>
branch nick: WolfPack
timestamp: Tue 2016-05-31 14:42:28 -0500
message:
  Removing ghost-wolfpack in favor of systemd vpn client.
------------------------------------------------------------
revno: 4
committer: dev <dev@aninix.net>
branch nick: WolfPack
timestamp: Sun 2016-05-15 21:35:02 -0500
message:
  Updated to include privacy VPN and offloading options.
------------------------------------------------------------
revno: 3
committer: dev <dev@aninix.net>
branch nick: WolfPack
timestamp: Thu 2016-05-12 20:51:23 -0500
message:
  Adding ghost-wolfpack script for sites using VPNs for privacy
------------------------------------------------------------
revno: 2
committer: dev <dev@aninix.net>
branch nick: WolfPack
timestamp: Thu 2016-05-12 15:58:05 -0500
message:
  Updated to use the googler package from the ArchLinux AUR for google searches and store as text files. Sufficient for now.
------------------------------------------------------------
revno: 1
committer: dev <dev@aninix.net>
branch nick: WolfPack
timestamp: Thu 2016-05-12 14:45:12 -0500
message:
  Adding all but search example -- search API is still in flux with no good command-line search option.
2016-08-04 12:08:16 -05:00

19 lines
542 B
Bash
Executable File

#!/bin/bash
if [ $(pgrep -afc $0) -ne 0 ]; then
echo Already running!
exit 1;
fi
cd /root/.config/transmission/blocklists/
rm -Rf *
wget 'http://list.iblocklist.com/?list=bt_level1&fileformat=p2p&archiveformat=gz' -O blocklist.gz
gunzip blocklist.gz;
while [ "$?" -ne 0 ]; do
echo Error $?: Couldn\'t get blocklist.
wget 'http://list.iblocklist.com/?list=bt_level1&fileformat=p2p&archiveformat=gz' -O blocklist.gz
gunzip blocklist.gz;
done
/usr/bin/transmission-cli -b notorrent # Update the blocklist to a .bin format