Return to printnewip CVS log | Up to [Local Repository] / badi / public_scripts / dhcp3 / dhclient-exit-hooks.d |
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