import downloadHD
import time
import os
import setparametros as par
downloadHD.setInicio(time.time())

def reset():
		config = par.getJsonParametros()
		if(config['status'] == 'start'):
			os.system('sudo reboot')
  
try:  
	while(downloadHD.openParametros()):
		parAlterados = par.verificarMundacaDeParametros()
		if(parAlterados):
    			break
		for i in range(10):
			if(downloadHD.openParametros()):
				downloadHD.main()
				time.sleep(downloadHD.getDelay())
			else:
				break
		if(downloadHD.openParametros()):
			reset()
except Exception as err:
	    print(" OS error: {0}".format(err))
finally:		
	reset()

8b8024d070c11c5512cb78dcac851413583bb214
<mask token>

<mask token>


def reset():
    config = par.getJsonParametros()
    if config['status'] == 'start':
        os.system('sudo reboot')


<mask token>

<mask token>
downloadHD.setInicio(time.time())


def reset():
    config = par.getJsonParametros()
    if config['status'] == 'start':
        os.system('sudo reboot')


try:
    while downloadHD.openParametros():
        parAlterados = par.verificarMundacaDeParametros()
        if parAlterados:
            break
        for i in range(10):
            if downloadHD.openParametros():
                downloadHD.main()
                time.sleep(downloadHD.getDelay())
            else:
                break
        if downloadHD.openParametros():
            reset()
except Exception as err:
    print(' OS error: {0}'.format(err))
finally:
    reset()

import downloadHD
import time
import os
import setparametros as par
downloadHD.setInicio(time.time())


def reset():
    config = par.getJsonParametros()
    if config['status'] == 'start':
        os.system('sudo reboot')


try:
    while downloadHD.openParametros():
        parAlterados = par.verificarMundacaDeParametros()
        if parAlterados:
            break
        for i in range(10):
            if downloadHD.openParametros():
                downloadHD.main()
                time.sleep(downloadHD.getDelay())
            else:
                break
        if downloadHD.openParametros():
            reset()
except Exception as err:
    print(' OS error: {0}'.format(err))
finally:
    reset()

import downloadHD
import time
import os
import setparametros as par
downloadHD.setInicio(time.time())

def reset():
		config = par.getJsonParametros()
		if(config['status'] == 'start'):
			os.system('sudo reboot')
  
try:  
	while(downloadHD.openParametros()):
		parAlterados = par.verificarMundacaDeParametros()
		if(parAlterados):
    			break
		for i in range(10):
			if(downloadHD.openParametros()):
				downloadHD.main()
				time.sleep(downloadHD.getDelay())
			else:
				break
		if(downloadHD.openParametros()):
			reset()
except Exception as err:
	    print(" OS error: {0}".format(err))
finally:		
	reset()
