#!/bin/sh

[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1

case "$1" in
	deconfig)
		if [ "$interface" == "eth0" ] && [ -e /proc/net/pnp ];then
			/sbin/resolvconf -d eth0.pnp
		fi;
		;;
	renew|bound)
		if [ "$interface" == "eth0" ] && [ -e /proc/net/pnp ];then
			cat /proc/net/pnp |/sbin/resolvconf -a eth0.pnp
		fi;
		;;
esac
