From 23abecb538518a8a6b2689624ec0db2f155dddac Mon Sep 17 00:00:00 2001 From: gutosie Date: Tue, 2 Mar 2021 21:02:19 +0200 Subject: [PATCH] Add files via upload --- NeoBoot/plugin.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/NeoBoot/plugin.py b/NeoBoot/plugin.py index e3f0e56..538481e 100644 --- a/NeoBoot/plugin.py +++ b/NeoBoot/plugin.py @@ -823,12 +823,6 @@ class NeoBootImageChoose(Screen): if fileExists('/tmp/.init_reboot'): system('rm /tmp/.init_reboot') - if fileExists('/.multinfo'): - if checkInternet(): - pass - else: - os.system('/etc/init.d/networking stop; sync; /etc/init.d/networking start;') - if not fileExists('/.control_ok'): 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 ') @@ -925,10 +919,11 @@ class NeoBootImageChoose(Screen): except: False - if checkInternet(): + if not fileExists('/tmp/.finishdate') or not fileExists('/tmp/.nkod') : + if checkInternet(): pass - else: - self.session.open(MessageBox, _('Geen internet'), MessageBox.TYPE_INFO, 4) + else: + self.session.open(MessageBox, _('Geen internet'), MessageBox.TYPE_INFO, 5) self.close() if not fileExists('/.multinfo'):