if a userscript fails, installapplications doesn't remove the touch file, so you get into an infinite loop.
if opts.userscript:
iaslog('Running in userscript mode')
uscript = runuserscript(iauserscriptpath)
if uscript:
os.remove(userscripttouchpath)
sys.exit(0)
else:
iaslog('Failed to run script!')
sys.exit(1)
should be
if opts.userscript:
iaslog('Running in userscript mode')
uscript = runuserscript(iauserscriptpath)
if uscript:
os.remove(userscripttouchpath)
sys.exit(0)
else:
iaslog('Failed to run script!')
os.remove(userscripttouchpath)
sys.exit(1)
if a userscript fails, installapplications doesn't remove the touch file, so you get into an infinite loop.
should be