Linux PPP

ip-up script

This script is run by the PPP daemon when the PPP connection is started. Its only job is to report the successful start to the console.

This script is stored in /etc/ppp/ip-up.

    #! /bin/bash
    interface=$1
    tty=$2
    speed=$3
    localIP=$4
    remoteIP=$5

    echo "PPP started at $(date):
    interface = $interface; tty = $tty; speed = $speed
    Local IP = $localIP;         Remote IP = $remoteIP
    PID = $PPID
    " >/dev/console

If you vary this script, remember that all output must be sent to /dev/console or to a file. It is run by pppd after it has disconnected from the terminal, and any message sent only to standard output will be lost.



Up to Linux PPP page

Last updated on 17th September 1996 by Oliver Elphick