Debian: Renew DHCP lease on hostname change

This commit is contained in:
Hannes Körber 2018-02-01 16:45:58 +01:00
parent ff3b025fc2
commit 3fa3e995a9
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