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

1.1       adi         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>