#!/bin/sh #Framework, welches ein komplettes Linux System aus den Sourcen erstellt #dieses Framework wird im CVS Repository #:pserver:cvs.rainmaker-mm.de/RMM/cvs zur Verfügung gestellt # #Lage dieser Datei im Archiv: $Source$ # #(c) Rainmaker MultiMedia OHG #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. # #Beschreibung: #Initialisierungs Script für das rp-pppoe Packet (start/stop) # #Aufrufparameter: #start/stop - zum Starten oder Stoppen des pppoe daemons #Letzte Änderung von: $Author$ #Datum der letzten Änderung: $Date$ #Version der Datei: $Revision$ # #$Log$ #Revision 1.3 2006/05/09 06:28:25 kueller #In neuer Version heissen die binarys nicht mehr adsl-*, sondern pppoe-* # #Revision 1.2 2002/10/10 08:32:01 kueller #Damit adsl nicht ohne konfiguration gestartet wird, wird überprüft ob die #Dateien /etc/ppp/pppoe.conf und /etc/ppp/pppoe.conf-bak vorhanden sind. #/etc/ppp/pppoe.conf enthält die Konfiguration für das rp-pppoe packet. #Diese Konfiguration wird mit dem Script adsl-setup angelegt. Dabei #erzeugt dieses Script ein Backup der Orginal (template) Datei von pppoe #mit dem Namen /etc/ppp/pppoe.conf-bak. # #Revision 1.1.1.1 2002/10/09 07:34:30 kueller #Neues Packet rp-pppoe zur Benutzung von ADSL/SDSL Internet Zugängen mit ppp over Ethernet # # source /etc/init.d/functions case "$1" in start) if [ -f /etc/ppp/pppoe.conf-bak ] && [ -f /etc/ppp/pppoe.conf ]; then echo -n "Starting adsl internet" /usr/sbin/pppoe-start evaluate_retval fi ;; stop) if [ -f /etc/ppp/pppoe.conf-bak ] && [ -f /etc/ppp/pppoe.conf ]; then echo -n "Stopping adsl-internet" /usr/sbin/pppoe-stop evaluate_retval fi ;; restart) if [ -f /etc/ppp/pppoe.conf-bak ] && [ -f /etc/ppp/pppoe.conf ]; then echo -n "Restarting ..." $0 stop $0 start fi ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 ;; esac