mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +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 ####################################################
|
||||
|
||||
@@ -4,11 +4,13 @@
|
||||
# IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben d<>rfen. #
|
||||
############################################################################################
|
||||
|
||||
case "$1" in
|
||||
. /etc/pakfire.conf
|
||||
. $HOME/lib/get_mirror.sh
|
||||
|
||||
update) $(lib/get_conf.sh HOME)/lib/get_mirror.sh
|
||||
$(lib/get_conf.sh HOME)/lib/get_list.sh
|
||||
$(lib/get_conf.sh HOME)/lib/check_pak.sh
|
||||
case "$1" in
|
||||
update) get_mirror
|
||||
get_list
|
||||
check_pak
|
||||
;;
|
||||
|
||||
*) echo -e "IPFire - Pakfire\nHilfe:\npakfire install [Paket]\t- Installiert ein neues Paket.\npakfire update\t\t- L<>dt die Liste aller Pakete neu.\npakfire remove [Paket]\t- Deinstalliert ein Paket.\npakfire upgrade\t\t- <20>berpr<70>ft nach neuen Updates."
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
############################################################################################
|
||||
|
||||
# Home Verzeichnis von Pakman
|
||||
HOME=/opt/pakfire/
|
||||
HOME=/opt/pakfire
|
||||
|
||||
# Verionsfile von IPFire
|
||||
VERS=/etc/ipfire_vers
|
||||
|
||||
Reference in New Issue
Block a user