diff options
-rwxr-xr-x | sbin/dhclient-script | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script index 9b58ccd..2adfeb1 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() { |