mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Merge pull request #9705 from jlduran/fix-freebsd-configure-networks
Fix network configuration on FreeBSD hosts
This commit is contained in:
commit
887afcd0bc
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ module VagrantPlugins
|
|||
interfaces = []
|
||||
|
||||
# Remove any previous network additions to the configuration file.
|
||||
commands << "sed -i'' -e '/^#VAGRANT-BEGIN/,/^#VAGRANT-END/ d' /etc/rc.conf"
|
||||
commands << "sed -i '' -e '/^#VAGRANT-BEGIN/,/^#VAGRANT-END/ d' /etc/rc.conf"
|
||||
|
||||
comm.sudo("ifconfig -a | grep -o '^[0-9a-z]*' | grep -v '^lo'", options) do |_, stdout|
|
||||
interfaces = stdout.split("\n")
|
||||
|
|
|
|||
Loading…
Reference in a new issue