Linux PPP HOWTO
Prev |  | Next

# Chapter 18. Automating your connections - Creating the connection scripts

Whilst you can continue to log in by hand as shown above, it is much neater to set up some scripts to do this automatically for you.

A set of scripts automates the log in and PPP start up so all you have to do (as root or as a member of the PPP group) is issue a single command to fire up your connection.

# 18.1. Connection scripts for User name/Password Authentication

If your ISP does NOT require the use of PAP/CHAP, these are the scripts for you!

If the ppp package installed correctly, you should have two example files. For PPP 2.1.2 they are in `/usr/sbin` and for PPP 2.2 they are in `/etc/ppp/scripts`. They are called

for PPP-2.1.2

    ppp-on
    ppp-off

and for PPP-2.2

    ppp-off
    ppp-on
    ppp-on-dialer

Now, if you are using PPP 2.1.2, I strongly urge you to delete the sample files. There are potential problems with these - and don't tell me they work fine - I used them for ages too (and recommended them in the first version of this HOWTO)!

For the benefit of PPP 2.1.2 users, here are BETTER template versions, taken from the PPP 2.2 distribution. I suggest you copy and use these scripts instead of the old PPP-2.1.2 scripts.

Prev | Home | Next
Setting up the PPP connection manually |  | The ppp-on script