diff options
author | Chuck Brewer <killian@gentoo.org> | 2003-04-24 06:31:48 +0000 |
---|---|---|
committer | Chuck Brewer <killian@gentoo.org> | 2003-04-24 06:31:48 +0000 |
commit | b295767476b56e31b921545913afa44f23b5b236 (patch) | |
tree | 420c87daa3f329173828dc976e020dd9e10a1c69 /net-dialup/ppp/files | |
parent | Version bump. (diff) | |
download | historical-b295767476b56e31b921545913afa44f23b5b236.tar.gz historical-b295767476b56e31b921545913afa44f23b5b236.tar.bz2 historical-b295767476b56e31b921545913afa44f23b5b236.zip |
*** empty log message ***
Diffstat (limited to 'net-dialup/ppp/files')
-rw-r--r-- | net-dialup/ppp/files/2.4.1-r6/chat-default | 12 | ||||
-rw-r--r-- | net-dialup/ppp/files/2.4.1-r6/modules.ppp | 8 | ||||
-rw-r--r-- | net-dialup/ppp/files/2.4.1-r6/net.ppp0 | 236 |
3 files changed, 0 insertions, 256 deletions
diff --git a/net-dialup/ppp/files/2.4.1-r6/chat-default b/net-dialup/ppp/files/2.4.1-r6/chat-default deleted file mode 100644 index c80f7568e8ea..000000000000 --- a/net-dialup/ppp/files/2.4.1-r6/chat-default +++ /dev/null @@ -1,12 +0,0 @@ -'ABORT' 'BUSY' -'ABORT' 'ERROR' -'ABORT' 'NO ANSWER' -'ABORT' 'NO CARRIER' -'ABORT' 'NO DIALTONE' -'ABORT' 'Invalid Login' -'ABORT' 'Login incorrect' -'' 'ATZ' -'OK' 'ATDT$NUMBER' -'CONNECT' '' -'TIMEOUT' '5' -'~--' '' diff --git a/net-dialup/ppp/files/2.4.1-r6/modules.ppp b/net-dialup/ppp/files/2.4.1-r6/modules.ppp deleted file mode 100644 index b0f06aa4dec8..000000000000 --- a/net-dialup/ppp/files/2.4.1-r6/modules.ppp +++ /dev/null @@ -1,8 +0,0 @@ -alias char-major-108 ppp_generic -alias /dev/ppp ppp_generic -alias tty-ldisc-3 ppp_async -alias tty-ldisc-14 ppp_synctty -alias ppp-compress-18 ppp_mppe -alias ppp-compress-21 bsd_comp -alias ppp-compress-24 ppp_deflate -alias ppp-compress-26 ppp_deflate diff --git a/net-dialup/ppp/files/2.4.1-r6/net.ppp0 b/net-dialup/ppp/files/2.4.1-r6/net.ppp0 deleted file mode 100644 index 707a53ce9913..000000000000 --- a/net-dialup/ppp/files/2.4.1-r6/net.ppp0 +++ /dev/null @@ -1,236 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2003 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/files/2.4.1-r6/net.ppp0,v 1.8 2003/02/14 22:58:50 vapier Exp $ -# Copyright 1999-2000 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# Author Martin Schlemmer <azarah@gentoo.org> -# Credits To all those I got ideas from :) -# /home/cvsroot/gentoo-x86/net-dialup/ppp/files/2.4.1-r6/net.ppp0,v 1.1 2001/11/11 19:47:03 azarah Exp - -PEER="isp" # Define peer (aka ISP) -DEBUG="no" # Turn on debugging -PERSIST="no" # Redial after being dropped -ONDEMAND="no" # Only bring the interface up on demand? -MODEMPORT="/dev/ttyS0" # TTY device modem is connected to -LINESPEED="115200" # Speed pppd should try to connect at -INITSTRING="" # Extra init string for the modem -DEFROUTE="yes" # Must pppd set the default route? -HARDFLOWCTL="yes" # Use hardware flow control? -ESCAPECHARS="yes" # Use escape caracters ? -PPPOPTIONS="" # Extra options for pppd -USERNAME="user" # The PAP/CHAP username -PASSWORD="passwd" # Your password/secret. Ugly I know, but i - # will work on something more secure later - # on. 700 permission on /etc/init.d/net.ppp0 - # should be enouth for now. -NUMBER="9180000" # The telephone number of your ISP -REMIP="" # The ip of the remote box if it should be set -NETMASK="" # Netmask -IPADDR="" # Our IP if we have a static one -MRU="768" # Sets the MRU -MTU="768" # Sets the MTU -RETRYTIMEOUT="60" # Retry timeout for when ONDEMAND="yes" or - # PERSIST="yes" -IDLETIMEOUT="600" # Idle timeout for when ONDEMAND="yes" -PEERDNS="no" # Should pppd set the peer dns? - -FWSCRIPT="/etc/init.d/firewall" # Optional FW script that pppd should start - # and stop when the link comes up or drop. - # It should be a script that takes two - # argument, namely the name of the external - # interface on which the firewall should be - # activated and start/stop. - # - # called: ${FWSCRIPT} ${DEVICE} [start|stop] - -AUTOCFGFILES="yes" # By default this scripts will generate - # /etc/ppp/chat-isp, /etc/ppp/chap-secrets, - # /etc/ppp/pap-secrets and /etc/ppp/peers/isp - # automagically. Set to "no" if you experience - # problems, or need specialized scripts. You - # will have to create these files by hand then. - # Also, the FWSTART/FWSTOP feature will not - # work. - - -# Do not change .. for determining name of interface -DEVICE="${1##*.}" - - -CMD_LINE="" -FUNCT="${2}" - -checkconfig() { - - if [ ! -x "`which pppd`" ] || [ ! -x "`which chat`" ] ; then - eerror "pppd and chat needs to be installed" - return 1 - fi - - if [ -e "/var/run/ppp-${DEVICE}.pid" ] && [ "${FUNCT}" = "start" ] ; then - eerror "ppp0 is already up" - return 1 - fi - - if [ ! -e "/var/run/ppp-${DEVICE}.pid" ] && [ "${FUNCT}" = "stop" ] ; then - - eerror "ppp0 not up" - - # Do our own cleanup - if [ -e /dev/shm/.init.d/started/net.${DEVICE} ] ; then - rm -f /dev/shm/.init.d/started/net.${DEVICE} - fi - - return 1 - fi - -} - -start() { - - checkconfig || return 1 - - setup_cmd_line - setup_cfg_files - - ebegin "Bringing ${DEVICE} up" - if [ -x "`which pppd`" ]; then - - if [ "${DEFROUTE}" = "yes" ] ; then - [ "`/sbin/route |grep default`" ] && route del default - fi - - /usr/sbin/pppd ${CMD_LINE} ${MODEMPORT} ${LINESPEED} ipparam ${DEVICE} \ - linkname ${DEVICE} call ${PEER} noauth ${PPPOPTIONS} - fi - eend -} - -stop() { - - checkconfig || return 1 - - ebegin "Bringing ${DEVICE} down" - if [ -x "`which ifconfig`" ]; then - - if [ ! "`/sbin/ifconfig |grep ${DEVICE}`" ] ; then - eerror "Interface seems to be down already" - return 1 - fi - - /sbin/ifconfig ${DEVICE} down - kill "`cat /var/run/ppp-${DEVICE}.pid |grep -v ${DEVICE}`" - fi - eend -} - -setup_cmd_line() { - - CMD_LINE="lock" - - if [ "${DEBUG}" = "yes" ] ; then - CMD_LINE="${CMD_LINE} debug" - fi - - if [ "${PERSIST}" = "yes" ] ; then - CMD_LINE="${CMD_LINE} persist holdoff ${RETRYTIMEOUT}" - fi - - if [ "${DEFROUTE}" = "yes" ] ; then - CMD_LINE="${CMD_LINE} defaultroute" - fi - - if [ "${HARDFLOWCTL}" = "yes" ] ; then - CMD_LINE="${CMD_LINE} modem crtscts" - fi - - if [ "${ESCAPECHARS}" = "yes" ] ; then - CMD_LINE="${CMD_LINE} asyncmap 00000000" - fi - - if [ "${PEERDNS}" = "yes" ] ; then - CMD_LINE="${CMD_LINE} usepeerdns" - fi - - if [ -n "${IPADDR}${REMIP}" ] ; then - CMD_LINE="${CMD_LINE} ${IPADDR}:${REMIP}" - fi - - if [ -n "${NETMASK}" ] ; then - CMD_LINE="${CMD_LINE} netmask ${NETMASK}" - fi - - if [ -n "${MRU}" ] ; then - CMD_LINE="${CMD_LINE} mru ${MRU}" - fi - - if [ -n "${MTU}" ] ; then - CMD_LINE="${CMD_LINE} mtu ${MTU}" - fi - - if [ -n "${USERNAME}" ] ; then - CMD_LINE="${CMD_LINE} user ${USERNAME} remotename ${PEER}" - fi - - if [ "${ONDEMAND}" = "yes" ] ; then - CMD_LINE="${CMD_LINE} demand ktune idle ${IDLETIMEOUT} holdoff ${RETRYTIMEOUT}" - fi -} - -setup_cfg_files() { - - if [ "${AUTOCFGFILES}" = "yes" ] ; then - - # Setup the peers file - echo "connect '/usr/sbin/chat -v -f /etc/ppp/chat-${PEER}'" \ - >/etc/ppp/peers/${PEER} - - # Setup the secrets files - echo "${USERNAME} ${PEER} \"${PASSWORD}\"" >/etc/ppp/chap-secrets - chmod 600 /etc/ppp/chap-secrets - echo "${USERNAME} ${PEER} \"${PASSWORD}\"" >/etc/ppp/pap-secrets - chmod 600 /etc/ppp/pap-secrets - - # Setup the chat file - if [ -n "${INITSTRING}" ] ; then - sed -e "9i\\'OK\' \'${INITSTRING}\'" \ - -e "s:\$NUMBER:${NUMBER}:" \ - /usr/lib/ppp/chat-default \ - >/etc/ppp/chat-${PEER} - else - sed -e "s:\$NUMBER:${NUMBER}:" \ - /usr/lib/ppp/chat-default \ - >/etc/ppp/chat-${PEER} - fi - - # Setup the ip-scripts so long - echo '#!/bin/bash' >/etc/ppp/ip-up - echo '' >>/etc/ppp/ip-up - chmod 770 /etc/ppp/ip-up - echo '#!/bin/bash' >/etc/ppp/ip-down - echo '' >>/etc/ppp/ip-down - chmod 770 /etc/ppp/ip-down - - # Setup if-up and if-down - if [ -x ${FWSCRIPT} ] ; then - - echo "${FWSCRIPT} \${6} start" >>/etc/ppp/ip-up - echo "${FWSCRIPT} \${6} stop" >>/etc/ppp/ip-down - fi - - if [ "${PEERDNS}" = "yes" ] ; then - - # ip-up: add the server supplied DNS entries to - # /etc/resolv.conf - echo "cp -f /etc/resolv.conf /etc/resolv.conf.old" \ - >>/etc/ppp/ip-up - echo "cat /etc/ppp/resolv.conf >> /etc/resolv.conf" \ - >>/etc/ppp/ip-up - - # ip-down: restore original /etc/resolv.conf - echo "mv -f /etc/resolv.conf.old /etc/resolv.conf" \ - >>/etc/ppp/ip-down - fi - fi -} |