File:  [Local Repository] / badi / public_scripts / dhcp3 / dhclient-exit-hooks.d / printnewip
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sun Aug 6 20:10:30 2023 UTC (15 months, 2 weeks ago) by adi
Branches: MAIN
CVS tags: HEAD
Quote!


# 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>