From 8b70ab8d6361209806a81602e2823041b8aa4372 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Mon, 13 May 2013 15:22:09 +0300 Subject: Add USB support and filter rtl2832u devices Fixes #2 --- Vagrantfile | 17 +++++++++++------ 1 file 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 -- cgit v1.3.1