Return to printnewip CVS log | Up to [Local Repository] / badi / public_scripts / dhcp3 / dhclient-exit-hooks.d |
version 1.1.1.1, 2009/04/24 00:29:27 | version 1.2, 2023/08/06 20:10:30 |
---|---|
Line 4 | Line 4 |
RUN="yes" | RUN="yes" |
if [ "$RUN" = "yes" ]; then | if [ "$RUN" = "yes" ]; then |
if [ ! -z $new_ip_address ]; then | if [ ! -z "$new_ip_address" ]; then |
# Print IP address recieved from dhclient | # Print IP address recieved from dhclient |
echo "IP from DHCP is: $new_ip_address" | echo "IP from DHCP is: $new_ip_address" |
else | else |