#!/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: #loaclnet script des sysvinit Prozesses #Konfigurieren der localhost umgebung #Basierend auf einer Vorlage von linuxfromscratch.org # #Letzte Änderung von: $Author$ #Datum der letzten Änderung: $Date$ #Version der Datei: $Revision$ # #$Log$ #Revision 1.3 2004/03/03 12:48:08 kueller #Header auf neuen Viitor GPL Header umgestellt # # #Revision 1.2 2003/04/19 08:05:46 kueller #Soweit nicht vorhanden, erweiterung um restart option. Ansonsten anpassung #an aktuellen Umfang von functions. reload und status funktioniert hier unter #viitor nicht! # #Revision 1.1.1.1 2001/09/23 00:02:08 kueller #Neustart wg. Datenverlust # #Revision 1.1.1.1 2001/08/08 10:02:32 kueller #sysvinit addons # # source /etc/init.d/functions case "$1" in start) echo -n "Bringing up the loopback interface..." /sbin/ifconfig lo 127.0.0.1 evaluate_retval if [ -f /etc/sysconfig/nodename ]; then echo -n "Setting up hostname..." /bin/hostname `cat /etc/sysconfig/nodename` evaluate_retval fi ;; stop) echo -n "Bringing down the loopback interface..." /sbin/ifconfig lo down evaluate_retval ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage $0: {start|stop|restart}" exit 1 ;; esac #End /etc/init.d/localnet