Installing and Administering PPP

38 Chapter 2
Setting Up PPP Connections
Configuring Inbound Connections
Look carefully at the last line in the sample script shown below. Notice
that the word 'hostname' is surrounded by backquotes, not regular
quotes or apostrophes. `hostname`, with the backquotes, tells the system
to insert the output of the command hostname(1) in this space in the
pppd command line. We recommend that you make sure backquotes are
used by copying this script from /etc/ppp/Login.ex, rather than
inserting them manually.
#!/bin/sh
# PPP login shell example
PATH=/usr/bin:/usr/etc:/etc:/bin
PPPHOME=/etc/ppp
export PATH PPPHOME
mesg n
stty -tostop
exec pppd `hostname`:robin idle 150
hostname will return lark, the current machine, and robin is the peer.
The idle timer is set to 150 seconds. Refer to the pppd(1) man page for
pppd command line options.
Checking Permissions
Following the creation of the Login shell script, make sure the script is
executable with the following command:
# chmod 755 Login