#!/bin/sh
#
# $Id: debug-enter,v 1.2 2002/04/15 04:52:52 eparis Exp $
#
# The purpose of this script is just to show the variables that are
# available to all the scripts in this directory. All these scripts
# are called from /etc/dhcp3/dhclient-script, which exports all the
# variables shown before. If you want to debug a problem with your DHCP
# setup you can enable this script and take a look at
# /tmp/dhclient-script.debug.

# To enable comment out the following line.
exit 0

echo `date`: entering dhclient-enter-hooks.d, dumping variables. >> /tmp/dhclient-script.debug

for i in reason interface medium alias_ip_address new_ip_address \
		new_subnet_mask new_domain_name new_domain_name_servers \
		new_routers new_static_routes old_ip_address old_subnet_mask \
		old_domain_name old_domain_name_servers old_routers \
		old_static_routes; do
	echo $i=\'${!i}\' >> /tmp/dhclient-script.debug
done

echo '--------------------------' >> /tmp/dhclient-script.debug

exit 0
