summaryrefslogtreecommitdiffstats
path: root/pg_list_updater.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pg_list_updater.sh')
-rwxr-xr-xpg_list_updater.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/pg_list_updater.sh b/pg_list_updater.sh
index ef019c6..dbc4f48 100755
--- a/pg_list_updater.sh
+++ b/pg_list_updater.sh
@@ -1,5 +1,18 @@
#!/bin/sh
-exit
+#----------------------------------------------------
+# File: pg_list_updater.sh
+# Version: 0.1.0
+# Author: Florian "Bluewind" Pritz <f-p@gmx.at>
+#
+# Copyright (C) 2008-2009 Florian Pritz
+#
+# Licensed under GNU General Public License v3
+# (see COPYING for full license text)
+#
+#----------------------------------------------------
+# download current blocklist and extract
+#----------------------------------------------------
+
failed() {
notify-send -t 10000 -u critical "Updater" "PG list NOT updated!"
}
@@ -7,7 +20,7 @@ finished(){
notify-send -t 10000 "Updater" "PG list update sucessfully"
}
-cd ~flo/stuff/
+cd $HOME/stuff/
wget http://peerguardian.sourceforge.net/lists/p2p.php -O level1.7z &&
7z x level1.7z &&
cat level1 | grep -vi moviex.info > p2p.pg &&