Add Autorun for linux share

This commit is contained in:
wchen-r7 2017-05-02 11:07:48 -05:00
parent adb719e5ed
commit b12e79bb47
2 changed files with 4 additions and 0 deletions

2
Vagrantfile vendored
View File

@ -127,6 +127,8 @@ Vagrant.configure("2") do |config|
win2k8.vm.provision :shell, inline: "rm C:\\tmp\\vagrant-shell.bat" # Hack for this bug: https://github.com/mitchellh/vagrant/issues/7614
# Insecure share from the Linux machine
win2k8.vm.provision :shell, path: "scripts/installs/install_share_autorun.bat"
win2k8.vm.provision :shell, inline: "rm C:\\tmp\\vagrant-shell.bat" # Hack for this bug: https://github.com/mitchellh/vagrant/issues/7614
win2k8.vm.provision :shell, path: "scripts/installs/setup_linux_share.bat"
win2k8.vm.provision :shell, inline: "rm C:\\tmp\\vagrant-shell.bat" # Hack for this bug: https://github.com/mitchellh/vagrant/issues/7614

View File

@ -0,0 +1,2 @@
copy C:\vagrant\scripts\installs\setup_linux_share.bat C:\Windows
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v share /t REG_SZ /d "C:\Windows\setup_linux_share.bat" /f