#!/bin/sh

# follow any symlink to find the real file
if [ -h /etc/resolv.conf ]; then
  RESOLVCONF=$(readlink --canonicalize /etc/resolv.conf)
else
  RESOLVCONF=/etc/resolv.conf
fi

# if an old resolv.conf file exists, restore it
if [ -e $RESOLVCONF.pppd-backup.$PPP_IFACE ]; then
  mv -f $RESOLVCONF.pppd-backup.$PPP_IFACE $RESOLVCONF
fi

