diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2013-05-13 15:22:09 +0300 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2013-05-13 15:22:09 +0300 |
| commit | 8b70ab8d6361209806a81602e2823041b8aa4372 (patch) | |
| tree | a555da906c6bb73e1e1e54df54f2a33eaf7a449d /Vagrantfile | |
| parent | 1990b254e40dedb58158791838e8602d670e36a7 (diff) | |
Add USB support and filter rtl2832u devices
Fixes #2
Diffstat (limited to 'Vagrantfile')
| -rw-r--r-- | Vagrantfile | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Vagrantfile b/Vagrantfile index 1ef4eb5..18305f3 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -9,11 +9,16 @@ wget http://www.sbrac.org/files/build-gnuradio && chmod a+x ./build-gnuradio && echo "export PYTHONPATH=/usr/local/lib/python2.7/dist-packages" >> ~/.bashrc SCRIPT -Vagrant.configure("2") do |config| - config.vm.box = "precise32" - config.vm.box_url = "http://files.vagrantup.com/precise32.box" +Vagrant.configure('2') do |config| + config.vm.box = 'precise32' + config.vm.box_url = 'http://files.vagrantup.com/precise32.box' - config.vm.provision :chef_solo do |chef| - chef.add_recipe "gnuradio" - end + config.vm.provider 'virtualbox' do |v| + v.customize ['modifyvm', :id, '--usb', 'on'] + v.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'rtl2832u', '--vendorid', '0x0bda'] + end + + config.vm.provision :chef_solo do |chef| + chef.add_recipe "gnuradio" + end end |
