diff --git a/sbin/dhclient-script b/sbin/dhclient-script index 9b58ccdd86..2adfeb168e 100755 --- a/sbin/dhclient-script +++ b/sbin/dhclient-script @@ -49,15 +49,15 @@ fi # check_hostname() { -# current_hostname=`$HOSTNAME` -# if [ -z "$current_hostname" ]; then -# $LOGGER "New Hostname ($interface): $new_host_name" -# $HOSTNAME $new_host_name -# elif [ "$current_hostname" = "$old_host_name" -a \ -# "$new_host_name" != "$old_host_name" ]; then -# $LOGGER "New Hostname ($interface): $new_host_name" -# $HOSTNAME $new_host_name -# fi + current_hostname=`$HOSTNAME` + if [ -z "$current_hostname" ]; then + $LOGGER "New Hostname ($interface): $new_host_name" + $HOSTNAME $new_host_name + elif [ "$current_hostname" = "$old_host_name" -a \ + "$new_host_name" != "$old_host_name" ]; then + $LOGGER "New Hostname ($interface): $new_host_name" + $HOSTNAME $new_host_name + fi } arp_flush() {