#!/bin/sh
# executed by udhcpc to do the real work of configuring an interface
# writes the result (if any) to file descriptor 9
case "$1" in
deconfig)	# ignored
	:;;
renew|bound)	# this gives the real information
	test -n "$ip" && {
		echo "ip='$ip'"
		echo "subnet='$subnet'"
		echo "broadcast='$broadcast'"
		echo "router='$router'"
	} >&9;;
leasefail)	# ignore - probably no dhcp server
	:;;
*)	echo "udhcpc: $*: command not recognised" >&2;;
esac