Quick and dirty script to generate the vdev file