summaryrefslogtreecommitdiff
path: root/core/ppp/ip-up.d.dns.sh
blob: f9df543a492472bd501f2ac9f02b109171469b71 (plain)
1
2
3
4
5
6
7
#!/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