Gentoo host only network no longer fails if already enabled. [closes GH-286]
This commit is contained in:
parent
1e931eaba6
commit
d58c1cf4d7
|
@ -12,6 +12,7 @@
|
|||
`localhost` is not always loopback.
|
||||
- New `shell` provisioner which simply uploads and executes a script as
|
||||
root on the VM.
|
||||
- Gentoo host only networking no longer fails if alrady setup. [GH-286]
|
||||
|
||||
## 0.7.0 (January 19, 2011)
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ module Vagrant
|
|||
vm.ssh.upload!(StringIO.new(entry), "/tmp/vagrant-network-entry")
|
||||
|
||||
vm.ssh.execute do |ssh|
|
||||
ssh.exec!("sudo ln -s /etc/init.d/net.lo /etc/init.d/net.eth#{net_options[:adapter]}")
|
||||
ssh.exec!("sudo ln -fs /etc/init.d/net.lo /etc/init.d/net.eth#{net_options[:adapter]}")
|
||||
ssh.exec!("sudo /etc/init.d/net.eth#{net_options[:adapter]} stop 2> /dev/null")
|
||||
ssh.exec!("sudo su -c 'cat /tmp/vagrant-network-entry >> /etc/conf.d/net'")
|
||||
ssh.exec!("sudo /etc/init.d/net.eth#{net_options[:adapter]} start")
|
||||
|
|
Loading…
Reference in New Issue