Merge pull request #9405 from hakoerber/fix-9402

Debian: Renew DHCP lease on hostname change
This commit is contained in:
Brian Cain 2018-02-07 14:40:21 -08:00 committed by GitHub
commit accf76fed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ module VagrantPlugins
if test -f /etc/init.d/hostname.sh; then
/etc/init.d/hostname.sh start || true
fi
if test -x /sbin/dhclient ; then
/sbin/dhclient -r
/sbin/dhclient -nw
fi
EOH
end
end