def autostart():
    """
    Add startup code to main.py
    """
    code = """
# Added by bootconfig
from bootconfig.device import configuration
configuration()
# End bootconfig
"""
    with open('main.py', 'a') as fh:
        fh.write(code)
