Compare commits

...

10 Commits

Author SHA1 Message Date
kueller
23ed438166 /etc/viitor_release wird nun angelegt..
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorInstall@5893 504e572c-2e33-0410-9681-be2bf7408885
2010-12-09 09:02:43 +00:00
kueller
767f207f75 Bacula Module hinzugefügt
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorInstall@5879 504e572c-2e33-0410-9681-be2bf7408885
2010-11-26 09:42:49 +00:00
kueller
fd4ea6eee3 /etc/group wird nun mit gesichert
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorInstall@5878 504e572c-2e33-0410-9681-be2bf7408885
2010-11-26 09:37:14 +00:00
kueller
d6a57727fa Umsetzung von GenPkgList in Perl - hoffentlich damit etwas schneller
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorInstall@5871 504e572c-2e33-0410-9681-be2bf7408885
2010-11-19 19:02:37 +00:00
kueller
e7dc4cae83 configurations modules für die wireless und wpa tools hinzugefügt
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorInstall@5866 504e572c-2e33-0410-9681-be2bf7408885
2010-11-16 08:49:42 +00:00
kueller
fffa1d84ca Kleine verbesserungen. bash -c statt source, sorgt dafÃr, das ein script abbruch nicht alles abbricht...
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorInstall@5742 504e572c-2e33-0410-9681-be2bf7408885
2010-07-07 17:48:35 +00:00
kueller
34805001bd Wenn /tmp/NOQEST existiert, wird jetzt auch nicht nach lilo gefragt...
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorInstall@5736 504e572c-2e33-0410-9681-be2bf7408885
2010-07-04 14:26:52 +00:00
kueller
be932573aa GenInstallcfg durch perl basierte version ersetzt.
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorInstall@5719 504e572c-2e33-0410-9681-be2bf7408885
2010-06-24 09:35:07 +00:00
kueller
b798dec5e6 Bereinigung einiger typos
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorInstall@5718 504e572c-2e33-0410-9681-be2bf7408885
2010-06-24 09:33:09 +00:00
kueller
30106c1dc3 erweiterung des kde. lxde hinzugefügt
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorInstall@5711 504e572c-2e33-0410-9681-be2bf7408885
2010-06-03 17:12:51 +00:00
10 changed files with 593 additions and 109 deletions

View File

@ -310,22 +310,24 @@ make_boot() {
mv /tmp/lilo.conf $INSTROOT/etc/lilo.conf
print "Add $WINNTHD as WinNT boot to your lilo.conf"
fi
print "You can now switch to the new System and edit your lilo.conf"
print "by the way to install a new kernel, or build a new kernel"
print "if you say \"no\", this script will install the CD Boot Kernel"
print "with special boot support for HD"
print "Would you like to edit your lilo.conf ?[Y/n]"
read
if [ ! "$REPLY" == "y" ]; then
$DEBUG chroot $INSTROOT /sbin/lilo
else
print "The root is now changed to the new System for this task"
$DEBUG chroot $INSTROOT /usr/bin/env -i HOME=/root TERM=$TERM /bin/bash --login
if [ ! -f $INSTROOT/tmp/NOQUEST ]; then
print "You can now switch to the new System and edit your lilo.conf"
print "by the way to install a new kernel, or build a new kernel"
print "if you say \"no\", this script will install the CD Boot Kernel"
print "with special boot support for HD"
print "Would you like to edit your lilo.conf ?[Y/n]"
read
if [ ! "$REPLY" == "y" ]; then
$DEBUG chroot $INSTROOT /sbin/lilo
else
print "The root is now changed to the new System for this task"
$DEBUG chroot $INSTROOT /usr/bin/env -i HOME=/root TERM=$TERM /bin/bash --login
fi
$DEBUG umount $INSTROOT/dev
$DEBUG umount $INSTROOT/proc
print "your System is now installed. please remove the CD/DVD"
print "and reboot your System"
fi
$DEBUG umount $INSTROOT/dev
$DEBUG umount $INSTROOT/proc
print "your System is now installed. please remove the CD/DVD"
print "and reboot your System"
}
install_cluster() {
@ -365,7 +367,8 @@ install_cluster() {
echo "chmod 1777 tmp" >>$INSTALLROOT/root/.bash_profile
echo "if [ -d /tmp/afterinstall ]; then" >>$INSTALLROOT/root/.bash_profile
echo "for i in /tmp/afterinstall/*; do" >>$INSTALLROOT/root/.bash_profile
echo "source \$i /" >>$INSTALLROOT/root/.bash_profile
echo "chmod 755 \$i" >>$INSTALLROOT/root/.bash_profile
echo "bash -c \$i /" >>$INSTALLROOT/root/.bash_profile
echo "cd - >/dev/null" >>$INSTALLROOT/root/.bash_profile
echo "rm \$i" >>$INSTALLROOT/root/.bash_profile
echo "done" >>$INSTALLROOT/root/.bash_profile
@ -376,7 +379,7 @@ install_cluster() {
mknod $INSTALLROOT/dev/null c 1 3
mkdir $INSTALLROOT/media
mount -o bind /dev $INSTALLROOT/dev
mount -t proc none $INSTALLROOT/proc
mount -o bind /proc $INSTALLROOT/proc
chroot $INSTALLROOT /usr/bin/env -i HOME=/root TERM=$TERM /bin/bash --login
if [ -f "$INSTALLROOT/root/.bash_profile" ]; then
mv $INSTALLROOT/root/.bash_profile.store $INSTALLROOT/root/.bash_profile

View File

@ -1 +1 @@
PKGFNAMES="/etc/fstab /etc/passwd etc/shadow /etc/sysconfig/net/defaultrouter /etc/sysconfig/nodename /etc/hosts /etc/resolv.conf /etc/sysconfig/loadmods"
PKGFNAMES="/etc/fstab /etc/passwd /etc/group /etc/shadow /etc/sysconfig/net/defaultrouter /etc/sysconfig/nodename /etc/hosts /etc/resolv.conf /etc/sysconfig/loadmods"

241
GenInstallcfg Executable file → Normal file
View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env perl
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
#dieses Framework wird im CVS Repository
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
@ -28,90 +28,169 @@
#
#
export PKGLIST=.pkglist
use strict;
use Getopt::Std;
WDIR=`pwd`
my %ArgSwitches;
my $DistTarget;
my $CfgFile;
my $PkgName;
my @PkgList;
my @CheckDependics;
PKGLISTING=$1
TMPFILE=`mktemp`
TMPFILE2=`mktemp`
rm $TMPFILE
rm $TMPFILE2
NUMDEPSOLD=0
NUMDEPSNEW=0
GenDeps() {
PKGNAME=$1
echo >&2 "Generating Dependics for $PKGNAME"
PKGFILE=`grep "SN=$PKGNAME;" $DISTTARGET/$PKGLIST|\
awk -F";" '{print $2}'|sed -e "s/PF=//"`
PKGPATH=`grep "PF=$PKGFILE;" $DISTTARGET/$PKGLIST|\
awk -F";" '{print $3}'|\
sed -e "s/PP=//"`
extractvarchive $DISTTARGET/$PKGPATH/$PKGFILE dep >$TMPFILE
echo "WARN $PKGNAME" >>$TMPFILE
NUMDEPSOLD=`cat $TMPFILE|wc -l`
while [ ! $NUMDEPSOLD == $NUMDEPSNEW ]; do
NUMDEPSOLD=$NUMDEPSNEW
exec 3<$TMPFILE
while read <&3 FLAG SHNAME; do
grep "SN=$SHNAME;" $DISTTARGET/$PKGLIST|awk -F";" '{print $2}'|sed -e "s/PF=//"
done > $TMPFILE2
exec 3>&-
for i in `cat $TMPFILE2`; do
PKGPATH=`grep "PF=$i;" $DISTTARGET/$PKGLIST|\
awk -F";" '{print $3}'|\
sed -e "s/PP=//"`
extractvarchive $DISTTARGET/$PKGPATH/$i dep
done >>$TMPFILE
rm $TMPFILE2
cat $TMPFILE |sort -u >$TMPFILE2
mv $TMPFILE2 $TMPFILE
NUMDEPSNEW=`cat $TMPFILE|wc -l`
done
cat $TMPFILE
rm $TMPFILE
getopts('d:f:',\%ArgSwitches);
foreach (sort keys %ArgSwitches) {
( $_ eq "d" ) && ($DistTarget = $ArgSwitches{$_});
( $_ eq "f" ) && ($CfgFile = $ArgSwitches{$_});
}
USAGE="Usage: $0 -d <Path to Distribution Packages> -f <Path to cfg in file>"
while getopts :d:f: opt_char; do
case $opt_char in
d)
DISTTARGET=$OPTARG
;;
f)
CFGFILE=$OPTARG
;;
*)
echo $USAGE
;;
esac
done
if ( ($ArgSwitches{f}) && ($ArgSwitches{d}) ) {
my @CfgFile;
my @Dependics;
open(CFG,"$CfgFile") or die "Could not open the in file: $!";
@CfgFile=<CFG>;
foreach(@CfgFile) {
chomp($_);
}
close CFG;
open(PKGLIST,"$DistTarget/.pkglist") or die "Could no open pkglist: $!";
@PkgList = <PKGLIST>;
close PKGLIST;
@CheckDependics=@CfgFile;
foreach ( @CheckDependics ) {
print STDERR "Generating Dependics for $_\n";
my @PkgFileInfo = &GetPkgInfoList($_);
if ( ! @PkgFileInfo ) {
print STDERR "Error in Config File: Shortname $_ not found!";
exit 10;
}
my $PkgFilePath="$DistTarget/$PkgFileInfo[1]/$PkgFileInfo[0]";
@Dependics=&GetDependicsList($PkgFilePath);
foreach ( @Dependics ) {
my $NotFound;
if [ ! -d $DISTTARGET ]; then
echo "$DISTTARGET ist not a directory"
echo $USAGE
exit 10
fi
chomp($_);
$_ =~ s/^WARN\s(.*)$/$1/;
$_ =~ s/^FORCE\s(.*)$/$1/;
my $DepName=$_;
$DepName =~ s/\+/\\+/g;
$NotFound=0;
foreach ( @CheckDependics ) {
if ( /^$DepName$/ ) {
$NotFound=1;
last;
} else {
$NotFound=0;
}
}
if ( ! $NotFound ) {
push @CheckDependics,$_;
}
}
}
open (BASE,"$DistTarget/../install/BaseDevel.cfg") or die "BaseDevel.cfg not found - should be created first! :$!\n";
my @Cfg = <BASE>;
close BASE;
foreach ( @Cfg ) {
chomp($_);
my @CfgLine = split /\s/,$_;
my $NotFound;
my $DepName = $CfgLine[2];
$DepName=~ s/\+/\\+/g;
foreach ( @CheckDependics ) {
if ( /^$DepName$/ ) {
$NotFound=1;
last;
} else {
$NotFound=0;
}
}
if ( ! $NotFound ) {
push @CheckDependics, $DepName;
}
}
open ( ALL,"$DistTarget/../install/All.cfg" ) or die "All.cfg must be created first!: $!\n";
@Cfg = <ALL>;
close ALL;
my @NewCfg;
foreach ( @Cfg ) {
chomp($_);
my @CfgLine = split /\s/,$_;
my $NotFound;
my $DepName = $CfgLine[2];
$DepName =~ s/\+/\\+/g;
foreach ( @CheckDependics ) {
if ( /^$DepName$/ ) {
$NotFound=1;
last;
} else {
$NotFound=0;
}
}
if ( $NotFound ) {
push @NewCfg, $_;
}
}
foreach ( @NewCfg ) {
print "$_\n"
}
} else {
&HELP_MESSAGE();
}
sub DeBzip2() {
open(UNCOMPRESS,"|bzip2 -d -c >/tmp/installpkg_bzip2_$$") or die "Can not start decompress: $!";
print UNCOMPRESS @_;
close UNCOMPRESS;
open(DATA,"/tmp/installpkg_bzip2_$$") or die "Data File after decompression not found: $!";
my @UnBzip2Data = <DATA>;
close DATA;
unlink("/tmp/installpkg_bzip2_$$");
return @UnBzip2Data;
}
if [ ! -f $CFGFILE ]; then
echo "$CFGFILE does not exist"
echo $USAGE
exit 10
fi
sub GetPkgInfoList() {
my @PkgFile;
my $SearchName=$_[0];
for i in `cat $CFGFILE`; do
GenDeps $i >>/tmp/DepsList$$
done
cat /tmp/DepsList$$|sort -u >/tmp/DepsListSort$$
rm /tmp/DepsList$$
cat $DISTTARGET/../install/BaseDevel.cfg
exec 3<$DISTTARGET/../install/All.cfg
while read <&3 CDROM PKGPATH MODNAME; do
if egrep -q " ${MODNAME}$" /tmp/DepsListSort$$; then
if ! egrep -q " ${MODNAME}$" $DISTTARGET/../install/BaseDevel.cfg; then
echo "$CDROM $PKGPATH $MODNAME"
fi
fi
done
rm /tmp/DepsListSort$$
$SearchName=~s/\+/\\+/g;
foreach ( @PkgList ) {
if ( /SN=$SearchName;PF=(.*);PP=(.*)/ ) {
$PkgFile[0]=$1;
$PkgFile[1]=$2;
chomp($PkgFile[1]);
return @PkgFile;
}
}
return();
}
sub GetDependicsList() {
my $PkgFile=@_[0];
my @StartFile;
open(ARCH,$PkgFile) or die "Could not open Archive File: $!";
my $ArchiveInfo=<ARCH>;
my @FileSizes = split /\s/,$ArchiveInfo;
unshift(@FileSizes,0);
$FileSizes[0]=tell(ARCH);
for ( my $j = 0; $j <= 11; $j++ ) {
for ( my $i=0; $i <= $j; $i++ ) {
$StartFile[$j]+=$FileSizes[$i];
}
}
shift @FileSizes;
if ( $FileSizes[0] > 0 ) {
read ARCH,my $Dependics, $FileSizes[0];
close ARCH;
return(&DeBzip2($Dependics));
} else {
close ARCH;
return () ;
}
}
sub HELP_MESSAGE() {
printf("\nGenInstallcfg: Aus den *.in files *.cfg files für make_base_install erzeugen\n");
printf("usage: ./GenInstallcfg -d <Distributionbinarydir> -f <cfg.in file>\n");
}

117
GenInstallcfg.sh Executable file
View File

@ -0,0 +1,117 @@
#!/bin/bash
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
#dieses Framework wird im CVS Repository
#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt
#
#Lage dieser Datei im Archiv: $HeadURL: svn://svn.compuextreme.de/Viitor/V962/ViitorMake/Scripts/GenInstallcfg $
#
#(c) 2003 Harald Kueller, Germany
#This program is free software; you can redistribute it and/or
#modify ist 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.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#See the GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with this program; if not write to the Free Software Foundation,
#Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#Script:
#
#Letzte Änderung von: $Author: kueller $
#Datum der letzten Änderung: $Date: 2010-01-19 12:27:40 +0100 (Di, 19 Jan 2010) $
#Version der Datei: $Revision: 5134 $
#
#
export PKGLIST=.pkglist
WDIR=`pwd`
PKGLISTING=$1
TMPFILE=`mktemp`
TMPFILE2=`mktemp`
rm $TMPFILE
rm $TMPFILE2
NUMDEPSOLD=0
NUMDEPSNEW=0
GenDeps() {
PKGNAME=$1
echo >&2 "Generating Dependics for $PKGNAME"
PKGFILE=`grep "SN=$PKGNAME;" $DISTTARGET/$PKGLIST|\
awk -F";" '{print $2}'|sed -e "s/PF=//"`
PKGPATH=`grep "PF=$PKGFILE;" $DISTTARGET/$PKGLIST|\
awk -F";" '{print $3}'|\
sed -e "s/PP=//"`
extractvarchive $DISTTARGET/$PKGPATH/$PKGFILE dep >$TMPFILE
echo "WARN $PKGNAME" >>$TMPFILE
NUMDEPSOLD=`cat $TMPFILE|wc -l`
while [ ! $NUMDEPSOLD == $NUMDEPSNEW ]; do
NUMDEPSOLD=$NUMDEPSNEW
exec 3<$TMPFILE
while read <&3 FLAG SHNAME; do
grep "SN=$SHNAME;" $DISTTARGET/$PKGLIST|awk -F";" '{print $2}'|sed -e "s/PF=//"
done > $TMPFILE2
exec 3>&-
for i in `cat $TMPFILE2`; do
PKGPATH=`grep "PF=$i;" $DISTTARGET/$PKGLIST|\
awk -F";" '{print $3}'|\
sed -e "s/PP=//"`
extractvarchive $DISTTARGET/$PKGPATH/$i dep
done >>$TMPFILE
rm $TMPFILE2
cat $TMPFILE |sort -u >$TMPFILE2
mv $TMPFILE2 $TMPFILE
NUMDEPSNEW=`cat $TMPFILE|wc -l`
done
cat $TMPFILE
rm $TMPFILE
}
USAGE="Usage: $0 -d <Path to Distribution Packages> -f <Path to cfg in file>"
while getopts :d:f: opt_char; do
case $opt_char in
d)
DISTTARGET=$OPTARG
;;
f)
CFGFILE=$OPTARG
;;
*)
echo $USAGE
;;
esac
done
if [ ! -d $DISTTARGET ]; then
echo "$DISTTARGET ist not a directory"
echo $USAGE
exit 10
fi
if [ ! -f $CFGFILE ]; then
echo "$CFGFILE does not exist"
echo $USAGE
exit 10
fi
for i in `cat $CFGFILE`; do
GenDeps $i >>/tmp/DepsList$$
done
cat /tmp/DepsList$$|sort -u >/tmp/DepsListSort$$
rm /tmp/DepsList$$
cat $DISTTARGET/../install/BaseDevel.cfg
exec 3<$DISTTARGET/../install/All.cfg
while read <&3 CDROM PKGPATH MODNAME; do
if egrep -q " ${MODNAME}$" /tmp/DepsListSort$$; then
if ! egrep -q " ${MODNAME}$" $DISTTARGET/../install/BaseDevel.cfg; then
echo "$CDROM $PKGPATH $MODNAME"
fi
fi
done
rm /tmp/DepsListSort$$

68
GenPkgList.pl Executable file
View File

@ -0,0 +1,68 @@
#!/usr/bin/env perl
use strict;
use Getopt::Std;
use File::Basename;
use File::Path;
use Cwd;
use Sys::Syslog;
#my $ShortName=&GetShortName($ARGV[0]);
my $DirPath=$ARGV[0];
if ( -d $DirPath ) {
open(FIND,"find $DirPath -name \"\*.vpg\"|");
my @FileList=<FIND>;
#print "@FileList";
foreach(@FileList) {
#print "$_\n";
my $ShortName=&GetShortName($_);
my $PkgName=basename($_);
my $FilePath=dirname($_);
chomp($PkgName);
(my $PkgPath = $FilePath) =~ s/$DirPath//;
chomp($PkgPath);
print "SN=$ShortName;PF=$PkgName;PP=$PkgPath\n";
}
} else {
print "Usage: GenPkgList <Path to BINARY Distribution Files>";
}
sub GetShortName() {
my $PkgName = $_[0];
my @StartFile;
my $MetaInfo;
my @Contents;
my @MetaInfo;
open PACKAGE,$PkgName or die "Could ot open ViitorArchive: $! $PkgName\n";
my $FileSizes = <PACKAGE>;
my @FileSizes = split /\s/,$FileSizes;
unshift(@FileSizes,0);
$FileSizes[0]=tell(PACKAGE);
for ( my $j = 0; $j <= 12; $j++ ) {
for ( my $i=0; $i<=$j; $i++) {
$StartFile[$j]+=$FileSizes[$i];
}
}
shift @FileSizes;
seek PACKAGE,$StartFile[1],0;
if ( $FileSizes[1] > 0 ) {
read PACKAGE,$MetaInfo,$FileSizes[1];
@MetaInfo=&DeBzip2($MetaInfo);
}
(my $ShortName = $MetaInfo[0] ) =~ s/ModuleName: //;
chomp($ShortName);
return $ShortName;
}
sub DeBzip2() {
open (UNCOMPRESS,"|bzip2 -d -c >/tmp/PkgList_bzip2_$$") or die "Can not start decompress: $!";
print UNCOMPRESS @_;
close UNCOMPRESS;
open(DATA,"/tmp/PkgList_bzip2_$$") or die "Data File after decompression not found: $!";
my @UnBzip2Data = <DATA>;
close DATA;
unlink("/tmp/PkgList_bzip2_$$");
return @UnBzip2Data;
}

View File

@ -9,7 +9,6 @@ parted
libmad
libid3tag
taglib
ram
libnet
svgalib
openssl
@ -18,8 +17,8 @@ alsa-lib
bluez-libs
libsidplay
libraw1394
libiec61833
libsamplerae
libiec61883
libsamplerate
libao
libogg
libvorbis
@ -96,7 +95,7 @@ tsocks
tcp_wrappers
nfs-utils
traceroute
freeealut
freealut
audiofile
toolame
a52dec
@ -255,7 +254,6 @@ xkbdata
xkeyboard-config
xorg-server
xf86-input-evdev
xf86-input-hyperpen
xf86-input-joystick
xf86-input-keyboard
xf86-input-mouse
@ -432,8 +430,8 @@ Convert-ASN1
Digest-HMAC
Authen-SASL
IO-Socket-SSL
NET-SSLeay
NET-DBus
Net-SSLeay
Net-DBus
Crypt-SmbHash
GnuPG
yafc
@ -441,7 +439,7 @@ rsync
sendmail
mutt
htdig
linx
lynx
openobex
sane-backends
tiff
@ -518,7 +516,7 @@ libsexy
lesstif
efltk
unixODBC
qt-all-opensource
qt-everywhere-opensource-src
wxGTK
opal
libglade
@ -569,7 +567,6 @@ xmms
xmms-sid
nspr
nss
rm
alien
sox
gtkglarea
@ -592,6 +589,9 @@ soprano
akonadi
qimageblitz
oxygen-icons
shared-desktop-ontologies
attica
polkit-qt-1
kdelibs
kdelibs-experimental
kdepimlibs
@ -643,6 +643,24 @@ xfce4-appfinder
xfce4-mixer
xfmedia
xfce4-taskmanager
lxde-common
menu-cache
lxmenu-data
lxsession
lxpanel
lxappearance
lxtask
lxterminal
lxrandr
lxsession-edit
lxdm
lxshortcut
lxinput
lxlauncher
lxnm
pcmanfm
gpicview
gtknetcat
swftools
amiwm
icewm

64
cfg_modules/bacula Executable file
View File

@ -0,0 +1,64 @@
#!/bin/bash
#
# Backup/Restore Script für die unattendet Installation
# von RainMaker Linux
# (c) 2001 by RainMaker MultiMedia OHG
#
# Zur Funktion des Scriptes werden 2 Variablen vom aufrufenden
# Script exportiert:
# XPATH: Pfad ins basis Verzeichniss der Konfigurations Daten
# NAME: Name der Konfiguration
# Sprich die Eigentlichen Konfigurationsdaten sind unter:
# $XPATH/$NAME zu finden
# beim Restore muß das Zielverzeichniss (Root des neu installierten
# Systems) unter $2 übergeben werden
#
#$Author: kueller $
#$Date: 2008-03-19 11:34:26 +0100 (Mi, 19 Mär 2008) $
#$Revision: 4105 $
#
#$Log$
#Revision 1.1 2001/09/23 17:50:40 kueller
#Initial revision
#
#Revision 1.1.1.1 2001/08/06 22:09:47 kueller
#Aufnahme in CVS Überwachung
#
#
DO=$1
STOREPATH=$2
RESTOREPATH=$3
if [ -z ${STOREPATH} ]; then
echo "Es wird Mindestens ein Backupverzeichniss benoetigt."
exit 10
fi
case ${DO} in
b)
if [ ! -d ${STOREPATH}/PKGS/bacula ]; then
${DEBUG} mkdir -p ${STOREPATH}/PKGS/bacula/etc
tar -C /etc/bacula -cf - .\|
tar -C ${STOREPATH}/PKGS/bacula/etc -xvf -
fi
;;
r)
if [ -z ${RESTOREPATH} ]; then
echo "Restorefunction braucht Angabe des Install Root Pfades"
exit 10
fi
if [ ! -d ${RESTOREPATH} ]; then
echo "${RESTOREPATH} must exist!"
exit 10
fi
if [ -d ${STOREPATH}/PKGS/bacula ]; then
tar -C ${STOREPATH}/PKGS/bacula -cf -|tar -C ${RESTOREPATH}/ -xf -
fi
;;
*)
echo "$0 {b|r}"
exit 10
;;
esac
exit 0

View File

@ -0,0 +1,67 @@
#!/bin/bash
#
# Backup/Restore Script für die unattendet Installation
# von RainMaker Linux
# (c) 2001 by RainMaker MultiMedia OHG
#
# Zur Funktion des Scriptes werden 2 Variablen vom aufrufenden
# Script exportiert:
# XPATH: Pfad ins basis Verzeichniss der Konfigurations Daten
# NAME: Name der Konfiguration
# Sprich die Eigentlichen Konfigurationsdaten sind unter:
# $XPATH/$NAME zu finden
# beim Restore muß das Zielverzeichniss (Root des neu installierten
# Systems) unter $2 übergeben werden
#
#$Author: kueller $
#$Date: 2008-03-19 11:34:26 +0100 (Mi, 19 Mär 2008) $
#$Revision: 4105 $
#
#$Log$
#Revision 1.1 2001/09/23 17:50:40 kueller
#Initial revision
#
#Revision 1.1.1.1 2001/08/06 22:09:47 kueller
#Aufnahme in CVS Überwachung
#
#
DO=$1
STOREPATH=$2
RESTOREPATH=$3
if [ -z ${STOREPATH} ]; then
echo "Es wird Mindestens ein Backupverzeichniss benoetigt."
exit 10
fi
case ${DO} in
b)
if [ -d /etc/sysconfig/wlan ]; then
for i in /etc/sysconfig/wlan/*; do
if [ ! -d ${STOREPATH}/PKGS/wireless_tools/etc/sysconfig/wlan ]; then
mkdir -p ${STOREPATH}/PKGS/wireless_tools/etc/sysconfig/wlan
fi
cp $i ${STOREPATH}/PKGS/wireless_tools/etc/sysconfig/wlan/
done
fi
;;
r)
if [ -z ${RESTOREPATH} ]; then
echo "Restorefunction braucht Angabe des Install Root Pfades"
exit 10
fi
if [ ! -d ${RESTOREPATH} ]; then
echo "${RESTOREPATH} must exist!"
exit 10
fi
if [ -d ${STOREPATH}/PKGS/wireless_tools ]; then
tar -C ${STOREPATH}/PKGS/wireless_tools -cf - .|tar -C ${RESTOREPATH} -xf -
fi
;;
*)
echo "$0 {b|r}"
exit 10
;;
esac
exit 0

View File

@ -0,0 +1,67 @@
#!/bin/bash
#
# Backup/Restore Script für die unattendet Installation
# von RainMaker Linux
# (c) 2001 by RainMaker MultiMedia OHG
#
# Zur Funktion des Scriptes werden 2 Variablen vom aufrufenden
# Script exportiert:
# XPATH: Pfad ins basis Verzeichniss der Konfigurations Daten
# NAME: Name der Konfiguration
# Sprich die Eigentlichen Konfigurationsdaten sind unter:
# $XPATH/$NAME zu finden
# beim Restore muß das Zielverzeichniss (Root des neu installierten
# Systems) unter $2 übergeben werden
#
#$Author: kueller $
#$Date: 2008-03-19 11:34:26 +0100 (Mi, 19 Mär 2008) $
#$Revision: 4105 $
#
#$Log$
#Revision 1.1 2001/09/23 17:50:40 kueller
#Initial revision
#
#Revision 1.1.1.1 2001/08/06 22:09:47 kueller
#Aufnahme in CVS Überwachung
#
#
DO=$1
STOREPATH=$2
RESTOREPATH=$3
if [ -z ${STOREPATH} ]; then
echo "Es wird Mindestens ein Backupverzeichniss benoetigt."
exit 10
fi
case ${DO} in
b)
if [ -d /etc/sysconfig/wpa_supplicant ]; then
for i in /etc/sysconfig/wpa_supplicant/*; do
if [ ! -d ${STOREPATH}/PKGS/wpa_supplicant/etc/sysconfig/wpa_supplicant ]; then
mkdir -p ${STOREPATH}/PKGS/wpa_supplicant/etc/sysconfig/wpa_supplicant
fi
cp $i ${STOREPATH}/PKGS/wpa_supplicant/etc/sysconfig/wpa_supplicant/
done
fi
;;
r)
if [ -z ${RESTOREPATH} ]; then
echo "Restorefunction braucht Angabe des Install Root Pfades"
exit 10
fi
if [ ! -d ${RESTOREPATH} ]; then
echo "${RESTOREPATH} must exist!"
exit 10
fi
if [ -d ${STOREPATH}/PKGS/wpa_supplicant ]; then
tar -C ${STOREPATH}/PKGS/wpa_supplicant -cf - .|tar -C ${RESTOREPATH} -xf -
fi
;;
*)
echo "$0 {b|r}"
exit 10
;;
esac
exit 0

View File

@ -113,3 +113,4 @@ fi
install_cluster $CFGFILE $INSTALLDIR $SOURCE/$BINPATH
install_kernel $INSTALLDIR
make_boot $INSTALLDIR
cp $SOURCE/VERSION $INSTALLDIR/etc/viitor_release