#!/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: $Source$ # #(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. # #InitScript zum Start des Daemons: #Start/Stop Script checkfs #FileSystem Checks initiieren #Basierend auf einer Vorlage von linuxfromscratch.org #speziell angepasst fuer den boot von der installations CDROM #Letzte Änderung von: $Author$ #Datum der letzten Änderung: $Date$ #Version der Datei: $Revision$ # # Begin /etc/init.d/checkfs source /etc/init.d/functions echo -n "Mounting tmpfs" mount -t tmpfs none /var evaluate_retval echo -n "Restoring Var FileSystem" cd /var tar -zxpf /boot/var.tgz evaluate_retval echo -n "Checking for System Configuration on /dev/floppy/0" tar -zxf /dev/floppy/0 for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do MOUNTPOINT=$i DEVICE=`awk '{if( $2 == "'$MOUNTPOINT'") print $1}' /etc/fstab` if [ "$DEVICE" == "none" ]; then echo -n "Mounting $MOUNTPOINT" mount $MOUNTPOINT evaluate_retval fi done if [ -f /sbin/vgscan ]; then echo -n "Scanning Volumes" /sbin/vgscan >/dev/null 2>&1 evaluate_retval for i in `vgdisplay|grep "VG Name"|awk '{print $3}'`; do echo -n "Activating Volume $i" vgchange -a y $i evaluate_retval done fi # End /etc/init.d/checkfs