[2250] in RedHat Linux List
Re: Documentation is out dated:
daemon@ATHENA.MIT.EDU (Robert Hart)
Fri Nov 1 16:41:56 1996
Date: Sat, 2 Nov 1996 08:39:24 +1100 (EST)
From: Robert Hart <hartr@interweft.com.au>
Reply-To: Robert Hart <iweft@ipax.com.au>
To: redhat-list@redhat.com
In-Reply-To: <9611011259.AA08862@stereotaxis.wustl.edu>
Resent-From: redhat-list@redhat.com
On Fri, 1 Nov 1996, Michael J. Yanowitz wrote:
> 2) PPP Tips (March 26, 1996) mentions that PPP should be initiated
> with ppp-on and ppp-off scripts which reside in /usr/sbin . This
> was true for 3.0.3, but in 4.0 these scripts reside in
> /etc/ppp/scripts or something like that.
The PPP-TIP was written specifically for Red Hat 3. A new version is in
preparation for Red Hat 3 & 4. However, the need for this tip in Red Hat 4
has possibly reduced as the netcfg tool now does PPP properly (as I
understand it).
> What the PPP Tips also fails to mention is where to place
> the ppp-on and ppp-off so they can be called at system startup.
> I tried calling them from /etc/rc.d/init.d/network, but that
> seems to be run in background, so the system is likely to have
> been fully up before the ppp connection has been established.
> Where should the ppp-on script be placed?
If you are using Red Hat 4 you should NOT attempt to use the scripts
outlined in the PPP-TIP! Things have changed with Linux kernel 2.0 and
PPP-2.2. Check the PPP-HOWTO (V2.2) that covers both kernel 1.2.x and
2.0.x.
As to starting the PPP interface at boot time...and keeping PPP alive
permanently
1) Use the PPP-HOWTO scripts.
2) Create /usr/local/scripts (mode 744 - this is the admin scripts
directory) owned by root, group root.
3) In that directory, create a script like...
---------------------------------------------
#!/bin/bash
#
# This script fires up the permanent PPP link and restarts it if it fails.
# It uses the /etc/ppp/scripts/... ppp start up script
#
# Robert Hart, InterWeft IT Consultants, July 1996
# iweft@ipax.com.au
#
# See the PPP-HOWTO (http://203.29.72.65/ for the latest version) for more
# Information on setting up the /etc/ppp/... scripts.
#
#
LOCKDIR=/var/lock
DEVICE=cua1
if [ -f $LOCKDIR/LCK..$DEVICE ]
then
rm -f $LOCKDIR/LCK..$DEVICE
echo "Removing stale lock files"
fi
while sleep 5; do
/bin/setserial /dev/ttyS1 spd_vhi
/etc/ppp/scripts/ppp-ipax-perm
rm -f $LOCKDIR/LCK..$DEVICE
done
----------------------------------------------------
Make this file mode 744 (owned by user root, group root) and name it
Do_Internet.
4) In /etc/rc.d/rc.sysinit add an invocation of this script at an
appropriate place. For example, towards the end of rc.sysinit, there is an
invocation of rc.serial (which correctly does special initialistaion of
the serial ports - if YOU write the script). Immediately after this is a
good place to start up PPP (as the file system is fully mounted,
special modules loaded, clock set etc etc). So After the call to
rc.serial, insert the lines
------------------------------------------------------
# Start the Internet link
if [ -x /usr/local/scripts/Do_Internet ]; then
echo "Starting the Internet link."
/usr/local/scripts/Do_Internet &
fi
------------------------------------------------------
Hope this helps.
A revised Red Hat PPP-TIP will be announced here shortly. It will be
available on the InterWeft Web site at http://203.29.72.65/ as soon as
announced and on the Red Hat site as soon as they have time to add it!
Robert Hart iweft@ipax.com.au
Voice: +61 (0)3 9735 3586
InterWeft, 35 Summit Road, Lilydale, Victoria 3140, Australia
IT, data and voice networking Consultancy
Strategic IT business planning
Internet planning, implementation, security and configuration
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null