Return to printnewip CVS log | Up to [Local Repository] / badi / public_scripts / dhcp3 / dhclient-exit-hooks.d |
1.1 adi 1:
2: # dhclient-exit-hook: printnewip
3:
4: RUN="yes"
5:
6:
7: if [ "$RUN" = "yes" ]; then
8:
1.2 ! adi 9: if [ ! -z "$new_ip_address" ]; then
1.1 adi 10: # Print IP address recieved from dhclient
11: echo "IP from DHCP is: $new_ip_address"
12: else
13: echo "No IP on DHCP interface configured."
14: fi
15: fi