--- badi/public_scripts/dhcp3/dhclient-exit-hooks.d/printnewip 2009/04/24 00:29:27 1.1.1.1 +++ badi/public_scripts/dhcp3/dhclient-exit-hooks.d/printnewip 2023/08/06 20:10:30 1.2 @@ -4,10 +4,9 @@ RUN="yes" - if [ "$RUN" = "yes" ]; then - if [ ! -z $new_ip_address ]; then + if [ ! -z "$new_ip_address" ]; then # Print IP address recieved from dhclient echo "IP from DHCP is: $new_ip_address" else