Neue Version V963

git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_rp-pppoe@5933 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2011-01-03 10:48:06 +00:00
commit 7046facf8f
3 changed files with 192 additions and 0 deletions

82
etc/init.d/adsl Executable file
View File

@ -0,0 +1,82 @@
#!/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

54
init/genpkg Normal file
View File

@ -0,0 +1,54 @@
#!/bin/bash
#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:
#Installation Initialisierung für rp-pppoe
#
#Aufrufparameter:
#keine
#
#Letzte Änderung von: $Author$
#Datum der letzten Änderung: $Date$
#Version der Datei: $Revision$
#
#$Log$
#Revision 1.1 2002/10/09 07:34:30 kueller
#Initial revision
#
#
WDIR=`pwd`
cd etc/init.d
chmod 755 adsl
mkdir rc{0,1,2,3,4,5,6}.d
for i in 0 1 2 6; do
cd rc$i.d
ln -s ../adsl K86adsl
cd ..
done
for i in 3 4 5; do
cd rc$i.d
ln -s ../adsl S06adsl
cd ..
done
cd $WDIR

56
tmp/postinstall Normal file
View File

@ -0,0 +1,56 @@
#!/bin/bash
#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:
#Postinstallations Routine für rp-pppoe.
#Diese Routine startet bei Bedarf gleich nach der installation das
#adsl Setup Script.
#
#Aufrufparameter:
#keine
#
#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/09 07:37:26 kueller
#Letzte Echo anweisung überflüssig und nicht komplett. Entfernt
#
#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
#
#
if [ ! -f /tmp/NOQUEST ]; then
echo "Soll das ADSL-Setup gestartet werden ? [Y/n]"
read ANSWER
if [ ! "$ANSWER" = "n" ]; then
/usr/sbin/pppoe-setup
fi
else
echo "Die Konfiguration des ADSL Zugang kann jederzeit mit"
echo "/usr/sbin/pppoe-setup nachgeholt werden."
fi