Annotation of badi/public_scripts/dhcp3/dhclient-exit-hooks.d/printnewip, revision 1.2

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

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