summaryrefslogtreecommitdiff
path: root/core/ppp/ip-down.d.dns.sh
blob: c9da47a63b4147813277e463bce5256c6bd36193 (plain)
1
2
3
4
5
6
7
#!/bin/sh

if [ -x /usr/bin/resolvconf ]; then
  /usr/bin/resolvconf -fd ${IFNAME}
else
  [ -e /etc/resolv.conf.backup.${IFNAME} ] && mv /etc/resolv.conf.backup.${IFNAME} /etc/resolv.conf
fi