From a63ce78441bf09e07ab44660cb9d7eab41276609 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 20 Feb 2007 05:28:47 +0000 Subject: Bring back hostname option since it is not leading to the short write errors --- sbin/dhclient-script | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'sbin/dhclient-script') 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() { -- cgit v1.1