cirlabs / vm

A series of shell scripts to bootstrap a data journalism virtual machine image for VirtualBox
MIT License
18 stars 6 forks source link

sync.sh: script currently matches all drives in Media, not just USB drives #21

Open aboutaaron opened 9 years ago

aboutaaron commented 9 years ago

Fix it

esagara commented 8 years ago

So right now changing https://github.com/cirlabs/vm/blob/master/sync.sh#L20 to

device_path=`echo $mtabline | grep 5EF8-BCBA`

seems to match only the usb drives. But I don't know if that is device specific. Thoughts?

esagara commented 8 years ago

So the 5EF8-BCBA seems to be specific to the manufacturer of the usb sticks we use. Additional sticks have a number appended on the end of them, ie 5EF8-BCBA1, 5EF8-BCBA2, 5EF8-BCBA3, etc...