finished the script for snapraid 0.5.x