#!/bin/sh
#
# ifdown hook script for resolvconf
#
# Licensed under the GNU GPL.  See /usr/share/common-licenses/GPL.
#
# History
# Jun 2003 - Apr 2004: Written by Thomas Hood <jdthood@yahoo.co.uk>

[ -x /sbin/resolvconf ] || exit 0

case "$ADDRFAM" in
	inet|inet6) : ;;
	*) exit 0 ;;
esac

case "$METHOD" in
	dhcp)
		# Delete record left behind by TERMinated dhclient
		# This works around bug #196865
		/sbin/resolvconf -d "${IFACE}"
		;;
esac

/sbin/resolvconf -d "${IFACE}.${ADDRFAM}"
