I wrote a complete guide on how to connect to wifi in headless mode (without pad, buttons, keyboard or even screen) in this postLphillimore wrote: ↑Sun Jul 23, 2017 7:32 pmJust to make this clear as I am seeing 'image' and 'script' bandied around the forums a lot in reference to new builds.
1) SD Card Image (as prepared by Wermy) - Contains everything you need for a fresh build. Once imaged, you can amend your .conf file to setup wireless (headless mode).
2) Setup Script - for use on an exisiting image / build and to incorporate the relevant mintyPi drivers etc to ensure screen works, for example.
http://www.sudomod.com/forum/viewtopic.php?f=45&t=3567