Home | History | Annotate | Line # | Download | only in sample
      1  1.1  christos #!/bin/sh
      2  1.1  christos #
      3  1.1  christos # This script is run by the pppd after the link is established.
      4  1.1  christos # It should be used to add routes, set IP address, run the mailq
      5  1.1  christos # etc.
      6  1.1  christos #
      7  1.1  christos # This script is called with the following arguments:
      8  1.1  christos #    Arg  Name               Example
      9  1.1  christos #    $1   Interface name     ppp0
     10  1.1  christos #    $2   The tty            ttyS1
     11  1.1  christos #    $3   The link speed     38400
     12  1.1  christos #    $4   Local IP number    12.34.56.78
     13  1.1  christos #    $5   Peer  IP number    12.34.56.99
     14  1.1  christos #
     15  1.1  christos 
     16  1.1  christos #
     17  1.1  christos # The  environment is cleared before executing this script
     18  1.1  christos # so the path must be reset
     19  1.1  christos #
     20  1.1  christos PATH=/usr/sbin:/sbin:/usr/bin:/bin
     21  1.1  christos export PATH
     22  1.1  christos 
     23  1.1  christos # last line
     24