diff options
Diffstat (limited to 'abs/core/ppp/ip-down.d.dns.sh')
-rw-r--r-- | abs/core/ppp/ip-down.d.dns.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/abs/core/ppp/ip-down.d.dns.sh b/abs/core/ppp/ip-down.d.dns.sh index 9e19f7d..c9da47a 100644 --- a/abs/core/ppp/ip-down.d.dns.sh +++ b/abs/core/ppp/ip-down.d.dns.sh @@ -1,3 +1,7 @@ #!/bin/sh -[ -e /etc/resolv.conf.backup.${IFNAME} ] && mv /etc/resolv.conf.backup.${IFNAME} /etc/resolv.conf +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 |