ip-down.local.add 548 B

1234567891011121314151617181920
  1. #
  2. # This sample code shows you one way to modify your setup to allow automatic
  3. # configuration of your resolv.conf for peer supplied DNS addresses when using
  4. # the `usepeerdns' option.
  5. #
  6. # In my case I just added this to my /etc/ppp/ip-down.local script. You may need to
  7. # create an executable script if one does not exist.
  8. #
  9. # Nick Walker (nickwalker@email.com)
  10. #
  11. if [ -n "$USEPEERDNS" -a -f /etc/ppp/resolv.conf ]; then
  12. if [ -f /etc/ppp/resolv.prev ]; then
  13. cp -f /etc/ppp/resolv.prev /etc/resolv.conf
  14. else
  15. rm -f /etc/resolv.conf
  16. fi
  17. fi