summaryrefslogtreecommitdiffstats
path: root/pg_list_updater.sh
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-02-24 19:46:00 +0100
committerFlorian Pritz <f-p@gmx.at>2009-02-24 19:46:00 +0100
commitf129bf7a7bad968939838d8efbd7cd878cf58257 (patch)
tree71f5e73f3fcca73e50fafc1b4f647f7bd3f402fb /pg_list_updater.sh
parentc77adbb09670a5261b317a4cdfa41255019e896b (diff)
downloadbin-f129bf7a7bad968939838d8efbd7cd878cf58257.tar.gz
bin-f129bf7a7bad968939838d8efbd7cd878cf58257.tar.xz
standardized file headers and added COPYING
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 &&