summaryrefslogtreecommitdiff
path: root/testing/ppp/ip-up
blob: 20473d73a22db497fe9aee80ebd942762056479c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#
# This script is run by pppd when there's a successful ppp connection.
#

# Execute all scripts in /etc/ppp/ip-up.d/
for ipup in /etc/ppp/ip-up.d/*.sh; do
  if [ -x $ipup ]; then
    # Parameters: interface-name tty-device speed local-IP-address remote-IP-address ipparam
    $ipup "$@"
  fi
done