Update tools.py

This commit is contained in:
gutosie
2021-08-22 11:47:52 +03:00
committed by GitHub
parent e100126a83
commit 37e158bd26

View File

@@ -2001,6 +2001,9 @@ class ReinstallKernel(Screen):
self.kernel_update()
def kernel_update(self):
if not fileCheck('' + LinkNeoBoot + '/.location') and not fileCheck(' ' + getNeoLocation() + 'ImageBoot/.neonextboot'):
pass
else:
os.system('echo "Flash " > ' + getNeoLocation() + 'ImageBoot/.neonextboot')
out = open('' + getNeoLocation() + 'ImagesUpload/.kernel/used_flash_kernel', 'w')
out.write('Used Kernel: Flash')