Skip to content

Commit

Permalink
vagrant: rename RIOT-OS => RIOT and mount the synced folder directly …
Browse files Browse the repository at this point in the history
…to /home/cnk
  • Loading branch information
cgundogan committed Dec 11, 2015
1 parent 446940f commit 6b0283f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Vagrant.configure(2) do |config|
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"
config.vm.synced_folder ".", "/home/vagrant/RIOT"

# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
Expand All @@ -29,7 +30,7 @@ Vagrant.configure(2) do |config|
# vb.gui = true
#
# # Set name of the VM
vb.name = "RIOT-OS VM"
vb.name = "RIOT VM"
#
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
Expand Down
8 changes: 1 addition & 7 deletions dist/tools/vagrant/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,8 @@ if ! hash experiment-cli 2>/dev/null; then
cd cli-tools-1.6.0 && python setup.py install && cd .. && rm -rf cli-tools-1.6.0
fi

# create a symbolic link to the RIOT-OS directory
if ! [ -L /home/vagrant/RIOT-OS ]; then
ln -fs /vagrant /home/vagrant/RIOT-OS
chown -h vagrant:vagrant /home/vagrant/RIOT-OS
fi

# copy udev rules
cp -f RIOT-OS/dist/tools/vagrant/udev_rules/*.rules /etc/udev/rules.d/
cp -f RIOT/dist/tools/vagrant/udev_rules/*.rules /etc/udev/rules.d/
udevadm control --reload-rules ; udevadm trigger

# cleanup
Expand Down

0 comments on commit 6b0283f

Please sign in to comment.