From: Franck B. <fra...@us...> - 2006-03-28 15:56:06
|
Update of /cvsroot/ipcop/ipcop/config/rc.d In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7879 Modified Files: rc.red Log Message: Make rc.red readable. Found some inconsistencies (corrected) Found a bug with 'loginscript' not corrected Signal some inconsistencies (-sync) Goal is ease modification of pppd parameters and adds of new modems. Removed 8000 bytes of duplicate code. Validated with pppoE modem, Alcatelusb & AlcaltelusbK (implies bewan,pulsar,conexant,amedyn are also ok). Index: rc.red =================================================================== RCS file: /cvsroot/ipcop/ipcop/config/rc.d/rc.red,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** rc.red 17 Dec 2005 08:57:47 -0000 1.4 --- rc.red 28 Mar 2006 15:55:59 -0000 1.5 *************** *** 27,31 **** use strict; ! require 'CONFIG_ROOT/general-functions.pl'; my %pppsettings; --- 27,31 ---- use strict; ! require '/var/ipcop/general-functions.pl'; [...1233 lines suppressed...] ! sleep 1; ! ! # Dial now or wait ! if ($pppsettings{'RECONNECTION'} eq 'dialondemand') { ! system('/usr/sbin/isdnctrl','dialmode','ippp0','auto'); ! system('/sbin/ifconfig','ippp0','10.112.112.112','pointopoint','10.112.112.113'); ! system('/sbin/ifconfig','ippp0','-arp','-broadcast'); ! system('/sbin/route','add','default','dev','ippp0'); ! } else { ! system('/usr/sbin/isdnctrl', 'dial', 'ippp0'); ! } ! ! system('/bin/killall', 'ibod'); ! if ($pppsettings{'COMPORT'} eq 'isdn2') { ! if ($pppsettings{'USEIBOD'} eq 'on') { ! system("/usr/sbin/ibod &"); ! } else { ! system('/usr/sbin/isdnctrl', 'addlink', 'ippp0'); } } |