Merge pull request #9405 from hakoerber/fix-9402
Debian: Renew DHCP lease on hostname change
This commit is contained in:
commit
accf76fed7
|
@ -32,6 +32,10 @@ module VagrantPlugins
|
||||||
if test -f /etc/init.d/hostname.sh; then
|
if test -f /etc/init.d/hostname.sh; then
|
||||||
/etc/init.d/hostname.sh start || true
|
/etc/init.d/hostname.sh start || true
|
||||||
fi
|
fi
|
||||||
|
if test -x /sbin/dhclient ; then
|
||||||
|
/sbin/dhclient -r
|
||||||
|
/sbin/dhclient -nw
|
||||||
|
fi
|
||||||
EOH
|
EOH
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue