diff --git a/NeoBoot/files/tools.py b/NeoBoot/files/tools.py
index c932991..a92c809 100644
--- a/NeoBoot/files/tools.py
+++ b/NeoBoot/files/tools.py
@@ -2581,6 +2581,74 @@ class ReinstallKernel(Screen):
self.close()
+class UpdateDataNeoBoot(Screen):
+ __module__ = __name__
+ skin = """
+
+
+
+ """
+
+
+ def __init__(self, session):
+ Screen.__init__(self, session)
+ self['lab1'] = Label(_('Press red button to run update neoboot or EXIT.'))
+ self['key_red'] = Label(_('Install neoboot'))
+ self['actions'] = ActionMap(['WizardActions', 'ColorActions'], {'back': self.close,
+ 'red': self.UploadNEO})
+
+ def UploadNEO(self):
+ if fileExists('/.control_boot_new_image'):
+ self.UploadNEO2()
+ else:
+ self.close()
+
+ def UploadNEO2(self):
+ self.session.open(UploadNEO3)
+
+ def myClose(self, message):
+ self.session.open(MessageBox, message, MessageBox.TYPE_INFO)
+ self.close()
+
+
+class UploadNEO3(Screen):
+ __module__ = __name__
+
+ if isFHD():
+ skin = """
+
+ """
+ else:
+ skin = '\n\t\t\n\t'
+
+ def __init__(self, session):
+ Screen.__init__(self, session)
+ self['lab1'] = Label(_('NeoBoot: Upgrading in progress\nPlease wait...'))
+ self.activityTimer = eTimer()
+ self.activityTimer.timeout.get().append(self.updateInfo)
+ self.onShow.append(self.startShow)
+
+ def startShow(self):
+ self.activityTimer.start(10)
+
+ def updateInfo(self):
+ self.activityTimer.stop()
+ if fileExists('/.control_boot_new_image'):
+ os.system('rm -f /.control_boot_new_image; echo "Image uruchomione OK\nNie kasuj tego pliku. \n\nImage started OK\nDo not delete this file." > /.control_ok ')
+ if not fileExists('/.control_boot_new_image'):
+ os.system('echo "Image uruchomione OK\nNie kasuj tego pliku. \n\nImage started OK\nDo not delete this file." > /.control_ok')
+ if fileExists('/usr/bin/tailscale') or fileExists('/etc/init.d/zerotier') :
+ os.system('opkg update; opkg install iptables kernel-module-tun zerotier; /etc/init.d/zerotier start; taiscale up;')
+
+
+ if not fileExists('/.control_boot_new_image'):
+ self.goNEO()
+
+ def goNEO(self):
+ from Plugins.Extensions.NeoBoot.plugin import NeoBootImageChoose
+ self.session.open(NeoBootImageChoose)
+ self.close()
+
class neoDONATION(Screen):
if isFHD():
skin = """