PKGBUILDs/core/ppp/ip-up.d.dns.sh

8 lines
229 B
Bash
Raw Normal View History

2009-10-10 02:17:35 +00:00
#!/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