blob: 64f70fff51d162ec8eec69b1f7562f974cde8784 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift-gnutella/files/cacheupdate.sh,v 1.7 2004/11/27 18:21:00 squinky86 Exp $
if [ -d ~/.giFT/Gnutella/ ]; then
cd ~/.giFT/Gnutella
wget http://crab.bishopston.net:3558/?urlfile=1\&client=GEN2\&version=0.2 -O gwebcaches.new || die "Unable to retrieve new caches."
if [ "`grep ERROR gwebcaches.new`" ]; then
cat gwebcaches.new
else
mv gwebcaches.new gwebcaches
fi
wget http://crab.bishopston.net:3558/?hostfile=1\&client=GEN2\&version=0.2 -O nodes.new || die "Unable to retrieve new hosts."
if [ "`grep ERROR nodes.new`" ]; then
cat nodes.new
else
mv nodes.new nodes
fi
echo "Update complete!"
else
echo "Please emerge gift-gnutella and run gift-setup."
fi
|