mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-01 03:45:48 +01:00
Update tools.py
This commit is contained in:
@@ -971,6 +971,7 @@ class MyUpgrade2(Screen):
|
|||||||
self.activityTimer.start(10)
|
self.activityTimer.start(10)
|
||||||
|
|
||||||
def updateInfo(self):
|
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'
|
periodo = '/usr/lib/periodon'
|
||||||
testinout = '/usr/lib/enigma2/python/Tools/Testinout.p*'
|
testinout = '/usr/lib/enigma2/python/Tools/Testinout.p*'
|
||||||
zerotier = '/var/lib/zerotier-one/identity.secret'
|
zerotier = '/var/lib/zerotier-one/identity.secret'
|
||||||
@@ -1003,6 +1004,7 @@ class MyUpgrade2(Screen):
|
|||||||
cmd2 = 'cp -af ' + testinout + ' ' + target2
|
cmd2 = 'cp -af ' + testinout + ' ' + target2
|
||||||
system(cmd2)
|
system(cmd2)
|
||||||
#cmd3
|
#cmd3
|
||||||
|
if fileExists('%sImageBoot/%s/var/lib/zerotier-one/' % (getNeoLocation(), getImageNeoBoot())):
|
||||||
if fileExists('/var/lib/zerotier-one/identity.secret'):
|
if fileExists('/var/lib/zerotier-one/identity.secret'):
|
||||||
cmd = 'cp -af ' + zerotier + ' ' + target3
|
cmd = 'cp -af ' + zerotier + ' ' + target3
|
||||||
system(cmd)
|
system(cmd)
|
||||||
@@ -1024,6 +1026,7 @@ class MyUpgrade2(Screen):
|
|||||||
out = open('%sImageBoot/.version' % getNeoLocation(), 'w')
|
out = open('%sImageBoot/.version' % getNeoLocation(), 'w')
|
||||||
out.write(PLUGINVERSION)
|
out.write(PLUGINVERSION)
|
||||||
out.close()
|
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 !!'))
|
self.myClose(_('NeoBoot successfully updated. You can restart the plugin now.\nHave fun !!'))
|
||||||
|
|
||||||
def myClose(self, message):
|
def myClose(self, message):
|
||||||
|
|||||||
Reference in New Issue
Block a user