Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 61214 Details for
Bug 93982
New ebuild: net-misc/pglinux
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
pgupdate
pgupdate (text/plain), 1.45 KB, created by
Daniel Harper
on 2005-06-14 09:28:22 UTC
(
hide
)
Description:
pgupdate
Filename:
MIME Type:
Creator:
Daniel Harper
Created:
2005-06-14 09:28:22 UTC
Size:
1.45 KB
patch
obsolete
>#!/bin/bash >#Copyright (C) 2005 Daniel Harper >#This program is free software; you can redistribute it and/or >#modify it under the terms of the GNU General Public License >#as published by the Free Software Foundation; either version 2 >#of the License, or (at your option) any later version. > >PGDIR=/usr/share/peerguardian >whiteb='\E[1;37;40m' >white='\E[0;37;40m' >redb='\E[1;31;40m' > >echo -en "$whiteb" >echo -e "PeerGuardian Update Script\n" >cd $PGDIR > >#check status of peerguardian > >echo -n "Checking status of PeerGuardian" >echo -en "$white" > >if /etc/init.d/peerguardian status | grep -q "stopped"; then > echo "....Stopped" > status="1" >else > echo "....Started, Stopping" > /etc/init.d/peerguardian stop > >fi > >echo -en "$whiteb" >echo -e "\nRemoving Old Files... $white" > >#check if files exist, before attempting to delete them > >if [ -f $PGDIR/p2p.p2b.p2p ] >then > rm -v p2p.p2b.p2p >fi > >if [ -f $PGDIR/p2p.p2b.gz ] >then > rm -v p2p.p2b.gz >fi > >if [ -f $PGDIR/p2p.p2b ] >then > rm -v p2p.p2b >fi > >echo -en "$whiteb" >echo -e "\nGetting new blocklist... $white" >wget -cnv blocklist.org/p2p.p2b.gz >echo -en "$whiteb" > >if [ ! -f $PGDIR/p2p.p2b.gz ] >then > echo -en "$redb" > echo -e "ERROR:$white BLOCKLIST NOT FOUND! QUIT\n" > exit >fi > >gunzip -q p2p.p2b.gz > >echo -en "$whiteb" >echo -e "\nUpdating PeerGuardian with new blocklist $white" >peerguardnf -n p2p.p2b > >if [ "$status" == "1" ]; then >echo "PeerGuardian is not running" >else >/etc/init.d/peerguardian start >fi > >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 93982
:
60933
|
60934
|
60935
|
60936
|
61020
|
61214
|
64726
|
70582
|
71716
|
71719
|
71772
|
71776
|
299179
|
299181