ip-up.local 848 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. #
  3. # FFHO ip-up replacement script (Salt managed)
  4. #
  5. # Using a ip-up.local script intentionally PREVENTS ALL OTHER ip-up.d/ scripts
  6. # from being called. We don't want that stuff.
  7. #
  8. #
  9. # This script is run by the pppd after the link is established.
  10. #
  11. # This script is called with the following arguments:
  12. # Arg Name Example
  13. # $1 Interface name ppp0
  14. # $2 The tty ttyS1
  15. # $3 The link speed 38400
  16. # $4 Local IP number 12.34.56.78
  17. # $5 Peer IP number 12.34.56.99
  18. # $6 Optional ``ipparam'' value foo
  19. # The environment is cleared before executing this script
  20. # so the path must be reset
  21. PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
  22. export PATH
  23. ip link set ${1}" master vrf_external