File:  [Local Repository] / badi / public_scripts / dhcp3 / dhclient-exit-hooks.d / printnewip
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Fri Apr 24 00:29:27 2009 UTC (15 years, 2 months ago) by adi
Branches: information_kinematics
CVS tags: badi
Various bash scripts.


# dhclient-exit-hook: printnewip

RUN="yes"



if [ "$RUN" = "yes" ]; then

	if [ ! -z $new_ip_address ]; then
		# Print IP address recieved from dhclient
		echo "IP from DHCP is: $new_ip_address"
	else
		echo "No IP on DHCP interface configured."
	fi
fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>