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.

    1: 
    2: # dhclient-exit-hook: printnewip
    3: 
    4: RUN="yes"
    5: 
    6: 
    7: 
    8: if [ "$RUN" = "yes" ]; then
    9: 
   10: 	if [ ! -z $new_ip_address ]; then
   11: 		# Print IP address recieved from dhclient
   12: 		echo "IP from DHCP is: $new_ip_address"
   13: 	else
   14: 		echo "No IP on DHCP interface configured."
   15: 	fi
   16: fi

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