autoflash: use custom quit() to end the script
autoflash: use custom quit() to end the script

The function uses return or exit statement based upon
if the script got sourced or executed directly.

digineo/gluon-autoflasher,digineo/gluon-autoflasher