vagrant-boot2docker 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 245304dedc34ebf8e21a8871e28791f9e0190f95
|
4
|
+
data.tar.gz: 1770e9123c9d6f634426484ed4619fa4924d54ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 743d8a680eea6779cc686674451f8c48ba9ab02e29d52a42449346db412bedfc5dabeaa54a583cb7e8c758a2d173d8c7895fd97ce9b33ee12864ebe4afea8d26
|
7
|
+
data.tar.gz: 3ede15600bd4cab3d7485f7cb722550168397e86d02b61bf9c6574461452755838a22f56417cd067fd1ef4dec3bc9a2e67adbcf4899a00ce66d2397fbc270837
|
@@ -9,10 +9,11 @@ module VagrantPlugins
|
|
9
9
|
networks.each do |n|
|
10
10
|
if n.key?("ip")
|
11
11
|
ifc = "/sbin/ifconfig eth#{n[:interface]}"
|
12
|
-
iface = "eth#{n[:interface]}"
|
12
|
+
#iface = "eth#{n[:interface]}"
|
13
13
|
broadcast = (IPAddr.new(n[:ip]) | (~ IPAddr.new(n[:netmask]))).to_s
|
14
|
-
# First kill the udhcp client for this interface
|
15
|
-
|
14
|
+
# First kill the udhcp client for this interface - does not work. Disable for now
|
15
|
+
# As a workaround, adding something similar to /var/lib/boot2docker/bootlocal.sh should fix it...
|
16
|
+
#comm.sudo("ps -ef |grep dhcp | grep #{iface} | grep -v grep | tr -s ' ' | cut -d' ' -f2| xargs kill")
|
16
17
|
comm.sudo("#{ifc} down")
|
17
18
|
comm.sudo("#{ifc} #{n[:ip]} netmask #{n[:netmask]} broadcast #{broadcast}")
|
18
19
|
comm.sudo("#{ifc} up")
|