3
# exit if the resolvconf package is installed
4
[ -x /sbin/resolvconf ] && exit 0
6
# follow any symlink to find the real file
7
if [ -e /etc/resolv.conf ]; then
8
REALRESOLVCONF=$(readlink --canonicalize /etc/resolv.conf)
10
REALRESOLVCONF=/etc/resolv.conf
13
# if an old resolv.conf file exists, restore it
14
if [ -e $REALRESOLVCONF.pppd-backup.$PPP_IFACE ]; then
15
mv -f $REALRESOLVCONF.pppd-backup.$PPP_IFACE $REALRESOLVCONF
17
# restart nscd because resolv.conf has changed
18
if [ -e /var/run/nscd.pid ]; then
19
/etc/init.d/nscd restart || true