#!/bin/sh
#
# ifdown hook script for resolvconf
#
# Licensed under the GNU GPL.  See /usr/share/common-licenses/GPL.
#
# History
# Jun 2003 - Nov 2010: Written by Thomas Hood

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

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

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

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