* 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:
ms
2006-06-03 20:16:53 +00:00
parent 6d4147d250
commit e383179bb6
11 changed files with 517 additions and 164 deletions

View File

@@ -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 ####################################################