Update tools.py

This commit is contained in:
gutosie
2024-01-20 17:41:40 +02:00
committed by GitHub
parent 769bd2de0a
commit de1c6e7ddb

View File

@@ -971,6 +971,7 @@ class MyUpgrade2(Screen):
self.activityTimer.start(10)
def updateInfo(self):
os.system('mv /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/userscript.sh /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/S99neo.local')
periodo = '/usr/lib/periodon'
testinout = '/usr/lib/enigma2/python/Tools/Testinout.p*'
zerotier = '/var/lib/zerotier-one/identity.secret'
@@ -1003,6 +1004,7 @@ class MyUpgrade2(Screen):
cmd2 = 'cp -af ' + testinout + ' ' + target2
system(cmd2)
#cmd3
if fileExists('%sImageBoot/%s/var/lib/zerotier-one/' % (getNeoLocation(), getImageNeoBoot())):
if fileExists('/var/lib/zerotier-one/identity.secret'):
cmd = 'cp -af ' + zerotier + ' ' + target3
system(cmd)
@@ -1024,6 +1026,7 @@ class MyUpgrade2(Screen):
out = open('%sImageBoot/.version' % getNeoLocation(), 'w')
out.write(PLUGINVERSION)
out.close()
os.system('mv /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/S99neo.local /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/userscript.sh')
self.myClose(_('NeoBoot successfully updated. You can restart the plugin now.\nHave fun !!'))
def myClose(self, message):