mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-01 20:05:48 +01:00
Update tools.py
This commit is contained in:
@@ -1018,6 +1018,13 @@ class MyUpgrade2(Screen):
|
|||||||
cmd6 = 'rm -r ' + target6 + ' > /dev/null 2>&1'
|
cmd6 = 'rm -r ' + target6 + ' > /dev/null 2>&1'
|
||||||
system(cmd6)
|
system(cmd6)
|
||||||
|
|
||||||
|
if fileExists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/S99neo.local'):
|
||||||
|
os.system('mv /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/S99neo.local /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/userscript.sh; sleep 2')
|
||||||
|
|
||||||
|
#przenoszenie wtyczki neoboot
|
||||||
|
cmd = 'cp -af ' + LinkNeoBoot + ' ' + target
|
||||||
|
system(cmd)
|
||||||
|
|
||||||
#multiboot_vu+
|
#multiboot_vu+
|
||||||
if fileExists('/linuxrootfs1'):
|
if fileExists('/linuxrootfs1'):
|
||||||
cmd = 'cp -af ' + LinkNeoBoot + ' /linuxrootfs1' + LinkNeoBoot + ' '
|
cmd = 'cp -af ' + LinkNeoBoot + ' /linuxrootfs1' + LinkNeoBoot + ' '
|
||||||
@@ -1035,11 +1042,6 @@ 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()
|
||||||
if fileExists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/S99neo.local'):
|
|
||||||
os.system('mv /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/S99neo.local /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/userscript.sh; sleep 2')
|
|
||||||
#przenoszenie wtyczki neoboot
|
|
||||||
cmd = 'cp -af ' + LinkNeoBoot + ' ' + target
|
|
||||||
system(cmd)
|
|
||||||
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