ppp-ip-up.d.dns.sh 229 B

12345678
  1. #!/bin/sh
  2. if [ "$USEPEERDNS" = "1" -a -f /etc/ppp/resolv.conf ]; then
  3. [ -e /etc/resolv.conf ] && mv /etc/resolv.conf /etc/resolv.conf.backup.${IFNAME}
  4. mv /etc/ppp/resolv.conf /etc/resolv.conf
  5. chmod 644 /etc/resolv.conf
  6. fi