Skip to content

Commit

Permalink
uvpn/dhclient-script: Remove hostname manipulation
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Nov 2, 2018
1 parent 7117d99 commit 7222646
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions uvpn/dhclient-script
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7222646

Please sign in to comment.