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 brought down.
      4  1.1  christos # It should be used to delete routes, unset IP addresses etc.
      5  1.1  christos #
      6  1.1  christos # This script is called with the following arguments:
      7  1.1  christos #    Arg  Name               Example
      8  1.1  christos #    $1   Interface name     ppp0
      9  1.1  christos #    $2   The tty            ttyS1
     10  1.1  christos #    $3   The link speed     38400
     11  1.1  christos #    $4   Local IP number    12.34.56.78
     12  1.1  christos #    $5   Peer  IP number    12.34.56.99
     13  1.1  christos #
     14  1.1  christos 
     15  1.1  christos #
     16  1.1  christos # The  environment is cleared before executing this script
     17  1.1  christos # so the path must be reset
     18  1.1  christos #
     19  1.1  christos PATH=/usr/sbin:/sbin:/usr/bin:/bin
     20  1.1  christos export PATH
     21  1.1  christos 
     22  1.1  christos # last line
     23