I made a rudimentary script which you can find here: Hyperpixel - HDMI Display Switcher
It simply switches out the config file between the Hyperpixel and HDMI settings.
Also on the forums is this version here, which quite cunningly does it all automatically: Hyperpixel - selective output (eg on boot)?
I hope this helps! :D