--- ip-up.d.dns.sh.old 2012-06-08 20:25:19.766618237 +0530 +++ ip-up.d.dns.sh.new 2012-06-08 20:31:03.431423114 +0530 @@ -1,7 +1,11 @@ #!/bin/sh if [ "$USEPEERDNS" = "1" -a -f /etc/ppp/resolv.conf ]; then - [ -e /etc/resolv.conf ] && mv /etc/resolv.conf /etc/resolv.conf.backup.${IFNAME} - mv /etc/ppp/resolv.conf /etc/resolv.conf - chmod 644 /etc/resolv.conf + if [ -x /usr/sbin/resolvconf ]; then + /usr/sbin/resolvconf -a ${IFNAME}