Bash script to create Gadget file.