Forcing eth0 to come up
This commit is contained in:
parent
1c057191cb
commit
b6f2443bd5
|
@ -9,7 +9,7 @@ module VagrantPlugins
|
||||||
comm.sudo("sed -i 's/.*$/#{name.split('.')[0]}/' /etc/hostname")
|
comm.sudo("sed -i 's/.*$/#{name.split('.')[0]}/' /etc/hostname")
|
||||||
comm.sudo("hostname -F /etc/hostname")
|
comm.sudo("hostname -F /etc/hostname")
|
||||||
comm.sudo("hostname --fqdn > /etc/mailname")
|
comm.sudo("hostname --fqdn > /etc/mailname")
|
||||||
comm.sudo("ifdown -a; ifup -a; ifup -a --allow=hotplug")
|
comm.sudo("ifdown -a; ifup -a; ifup eth0")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue