mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Update:
* Squid 2.5STABLE14 eingepflegt. Geändert: * xinetd Konfiguration verschoben. * OpenVPN Errors behoben. Funktioniert immernoch nicht korrekt. :( * Pakfire bearbeitet. * Credits erweitert und GPL hinzugefügt. * index.cgi, völlig neuer Look. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@155 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -1,37 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
############################################################################################
|
||||
# Version 0.1a, Copyright (C) 2006 by IPFire.org #
|
||||
# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben d<>rfen. #
|
||||
############################################################################################
|
||||
|
||||
# Haupt-URL
|
||||
http=$(get_conf.sh H_MIRROR)
|
||||
|
||||
# Ziel-Verzeichnis
|
||||
dest=$(get_conf.sh HOME)
|
||||
|
||||
# URL-Zerleger
|
||||
URL_ZERL=$(get_conf.sh URL_ZERL)
|
||||
|
||||
# Host-Tester
|
||||
HOST_TEST=$(get_conf.sh HOST_TEST)
|
||||
get_mirror() {
|
||||
|
||||
# Testen ob Server erreichbar ist
|
||||
if ! $HOST_TEST $($URL_ZERL $http get_host) >/dev/null 2>&1
|
||||
if ! $HOST_TEST $($URL_ZERL $H_MIRROR get_host) >/dev/null 2>&1
|
||||
then exit 1
|
||||
fi
|
||||
|
||||
# Ins Verzeichnis wechseln
|
||||
cd $dest
|
||||
cd $HOME
|
||||
|
||||
# <20>berpr<70>fen ob File schon vorhanden ist
|
||||
if [ -e ${dest}$($URL_ZERL $http get_file) ]
|
||||
then rm ${dest}$($URL_ZERL $http get_file)
|
||||
if [ -e $HOME/$($URL_ZERL $H_MIRROR get_file) ]
|
||||
then rm $HOME/$($URL_ZERL $H_MIRROR get_file)
|
||||
fi
|
||||
|
||||
# File herunterladen
|
||||
if /usr/bin/wget -q $http >/dev/null 2>&1
|
||||
if /usr/bin/wget -q $H_MIRROR >/dev/null 2>&1
|
||||
then
|
||||
cd -
|
||||
exit 0
|
||||
@@ -40,4 +28,5 @@ if /usr/bin/wget -q $http >/dev/null 2>&1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
}
|
||||
################################### EOF ####################################################
|
||||
|
||||
Reference in New Issue
Block a user