diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-02-20 05:28:47 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-02-20 05:28:47 +0000 |
commit | a63ce78441bf09e07ab44660cb9d7eab41276609 (patch) | |
tree | 390bfc15e2da780c496fbd7935144d85af26701b /sbin/dhclient-script | |
parent | e86a8e574177d2cc5a8347d05056d1d1a7488629 (diff) | |
download | pfsense-a63ce78441bf09e07ab44660cb9d7eab41276609.zip pfsense-a63ce78441bf09e07ab44660cb9d7eab41276609.tar.gz |
Bring back hostname option since it is not leading to the short write errors
Diffstat (limited to 'sbin/dhclient-script')
-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() { |