83 lines
2.6 KiB
Plaintext
83 lines
2.6 KiB
Plaintext
|
#!/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<72>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 <20>nderung von: $Author$
|
|||
|
#Datum der letzten <20>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 <20>berpr<70>ft ob die
|
|||
|
#Dateien /etc/ppp/pppoe.conf und /etc/ppp/pppoe.conf-bak vorhanden sind.
|
|||
|
#/etc/ppp/pppoe.conf enth<74>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<75>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
|