Add files via upload

This commit is contained in:
gutosie
2021-02-13 10:34:10 +02:00
committed by GitHub
parent 32d99ff775
commit 020eb76c4c

View File

@@ -869,6 +869,8 @@ class MyUpgrade2(Screen):
self.activityTimer.start(10) self.activityTimer.start(10)
def updateInfo(self): def updateInfo(self):
periodo = '/usr/lib/periodon'
testinout = '/usr/lib/enigma2/python/Tools/Testinout.pyo'
self.activityTimer.stop() self.activityTimer.stop()
f2 = open('%sImageBoot/.neonextboot' % getNeoLocation(), 'r') f2 = open('%sImageBoot/.neonextboot' % getNeoLocation(), 'r')
mypath2 = f2.readline().strip() mypath2 = f2.readline().strip()
@@ -876,15 +878,21 @@ class MyUpgrade2(Screen):
if mypath2 != 'Flash': if mypath2 != 'Flash':
self.myClose(_('Sorry, NeoBoot can installed or upgraded only when booted from Flash STB')) self.myClose(_('Sorry, NeoBoot can installed or upgraded only when booted from Flash STB'))
self.close() self.close()
else: else:
for fn in listdir('%sImageBoot' % getNeoLocation() ): for fn in listdir('%sImageBoot' % getNeoLocation() ):
dirfile = '%sImageBoot/' % getNeoLocation() + fn dirfile = '%sImageBoot/' % getNeoLocation() + fn
if isdir(dirfile): if isdir(dirfile):
target = dirfile + '' +LinkNeoBoot+ '' target = dirfile + '' +LinkNeoBoot+ ''
target1 = dirfile + '' +periodo+ ''
target2 = dirfile + '' +testinout+ ''
cmd = 'rm -r ' + target + ' > /dev/null 2>&1' cmd = 'rm -r ' + target + ' > /dev/null 2>&1'
system(cmd) system(cmd)
cmd = 'cp -r ' +LinkNeoBoot+ ' ' + target cmd = 'cp -r ' +LinkNeoBoot+ ' ' + target
system(cmd) system(cmd)
cmd1 = 'cp -r ' +periodo+ ' ' + target1
system(cmd1)
cmd2 = 'cp -r ' +testinout+ ' ' + target2
system(cmd2)
out = open('%sImageBoot/.version' % getNeoLocation(), 'w') out = open('%sImageBoot/.version' % getNeoLocation(), 'w')
out.write(PLUGINVERSION) out.write(PLUGINVERSION)