core/ppp/ip-up.d.dns.sh
Jan Mette a20ff5c68a
2010-03-13 15:25:19 +00:00

8 lines
229 B
Bash

#!/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
fi