From 72226468971dc9ec49172f8ead0d32285b2c73f7 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 2 Nov 2018 14:03:46 +0100 Subject: [PATCH] uvpn/dhclient-script: Remove hostname manipulation --- uvpn/dhclient-script | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/uvpn/dhclient-script b/uvpn/dhclient-script index 4b67126..50612bb 100755 --- a/uvpn/dhclient-script +++ b/uvpn/dhclient-script @@ -30,16 +30,7 @@ fi if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \ [ x$reason = xREBIND ] || [ x$reason = xREBOOT ]; then - current_hostname=`hostname` - if [ x$current_hostname = x ] || \ - [ x$current_hostname = "x(none)" ] || \ - [ x$current_hostname = xlocalhost ] || \ - [ x$current_hostname = x$old_host_name ]; then - if [ x$new_host_name != x$old_host_name ]; then - hostname "$new_host_name" - fi - fi - + if [ x$old_ip_address != x ] && [ x$alias_ip_address != x ] && \ [ x$alias_ip_address != x$old_ip_address ]; then # Possible new alias. Remove old alias.