jobcore/ppp/ip-down.d.dns.sh
2022-03-20 14:19:37 +02:00

7 lines
191 B
Bash

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