#!/bin/sh
######################################################################
#
# This script is part of the PPP System designed and used by
# Preston A. Elder of Shadow Realm.  If you have any problems
# with this system please email prez@antisocial.com.
#
# This system is publically distributable via. the GNU license.
#
######################################################################
#
# This has all the settings needed by the other scripts
#

# Where all your main program scripts are.
basePPP=/etc/ppp

# Where PID (Process ID) file go.
basePID=/var/run

# Where DEVICE LOCKING files go (that stop other programs using this device).
baseLOCK=/var/lock

# Where to put the redail.log
baseLOG=/var/log

export basePPP basePID baseLOCK baseLOG


# Start PPP if executed with START Option.  Why did I implement this?  Simple,
# you can put in your /etc/rc.d/rc.inet1 the following:
#
# if [ -f /etc/ppp-settings ]; then
# 	/etc/ppp-settings START
# fi
#
# And all you have to do is remove the /etc/ppp-settings (which is usually a
# link to the real settings file (normally /etc/ppp/ppp-settings)) and it will
# not start PPP -- so you can have a complete PPP system, or a mounted version
# of it, and not have it starting on all systems, even with the same rc.inet1.
if [ -n "`echo $1 | grep -i START`" ]; then
	exec ${basePPP}/ppp-on $2 $3 $4 $5 $6
fi


# Your DEFAULT ISP Profile ... does not have to be anything to do with the
# actual ISP itself, just what you have called the -data and -ppp-on-dialer
# files. eg. ISP would use ISP-data and ISP-ppp-on-dialer files.
baseISP=ISP

# Default TTY to dial from.
baseTTY=modem

# Default ppp device for checking ... PPP devices are dynamically allocated
# by pppd (it chooses the next available), but this is the default device
# to check for things like chk4net (if curdef doesnt output anything).
baseDEV=ppp0

# Default speed of PPP device.  This is usually 19200, 38400 or 57600,
# (sometimes 115200) depending on the speed of your modem.  Make sure
# it is above the speed of your modem.
baseSPEED=57600

# If set to 0, PPP system will use ISP Cycling.  However, if set to 1+, your
# system will only allow this many FAILED connect attempts before it will
# stop dialing and have to be re-started manually.
MAXDIAL=0

# Debug level illustrates how verbose logging messages (syslog) should be.
# Keep in mind, the higher you set this level, the more output you will
# get!  This number is a 'bitwise' number, meaning that it is made up by
# adding the following values to get a result:
#      1 - General debugging information
#      2 - Show contents of received packets
#      4 - Show contents of transmitted packets
DEBUG="kdebug 0"

export baseISP baseTTY baseDEVICE baseSPEED MAXDIAL DEBUG


# Just a general search path ... no need to change.
PATH="${basePPP}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

export PATH


# The IP YOUR computer thinks it is.  This is not nessicarily what the rest
# of the net see's you as, but it is what YOUR SYSTEM thinks it is.  If you
# have a local network that has its own IP's, that are not recognised outside
# of your local network, this is what goes here.
LOCALIP=127.0.0.1

# Size of your SubNet... Commons are:
# 	Class A	8	(16777214 IP's)
# 	Class B	16	(65534 IP's)
# 	Class C	24	(254 IP's)
# 	7-Bit	25	(126 IP's)
# 	6-Bit	26	(62 IP's)
# 	5-Bit	27	(30 IP's)
# 	4-Bit	28	(14 IP's)
# 	3-Bit	29	(4 IP's)
# 	2-Bit	30	(2 IP's)
# 	1-Bit	31	(0 IP)
# NOTE: For each of the above, there is ALWAYS 2 more IP allocated to you
# 	to be your "Network Bit" (see below) and Broadcast Bit.  Therefore,
# 	a 1-Bit Subnet is really 2 IP's, but no usable ones, as they are being
# 	used by a network and a broadcast bit, and a 2-bit is really 4 IP's
# 	with one of them as a network bit, and one a broadcast bit, etc etc.
# 	Thus 32 is the REAL single-ip, but not what we want here (no network
# 	bit or broadcast bit on a quad address).
LOCALBIT=24

# What IP starts your network (ie. your network bit)... Commons are:
# 	Class A	XXX.0.0.0
#	Class B XXX.XXX.0.0
# 	Class C XXX.XXX.XXX.0
# 	Others it depends what your ISP has allocated, ie. if they have
#       allocated you IP's 10-25, your network bit is 10, and your usable
#       IP's are 11-25.  (READ UP ON THIS if you're not sure)
# 	
LOCALNET=127.0.0.0

# This is made for kernels that HAVE IP masquerading support, but you do not wish to
# use it.  Set this to 1 to use it, 0 to not use it.  If you do not have IP Masq
# support in kernel, this option is useless.
MASQ=0

export LOCALIP LOCALBIT LOCALNET MASQ

