Update tools.py

This commit is contained in:
gutosie
2021-12-15 13:17:32 +02:00
committed by GitHub
parent 996d4b3e17
commit 405cf14947

View File

@@ -961,6 +961,9 @@ class MyUpgrade2(Screen):
target = dirfile + '' + LinkNeoBoot + ''
target1 = dirfile + '/usr/lib/'
target2 = dirfile + '/usr/lib/enigma2/python/Tools/'
os.system('chattr -i /usr/lib/periodon/.activatedmac; chattr -i ' + LinkNeoBoot +'/plugin.py; chattr -i ' + target + '/usr/lib/periodon/.activatedmac; chattr -i ' + target + '' + LinkNeoBoot +'/plugin.py')
if fileExists('' + LinkNeoBoot +'/plugin.pyo'):
cmd3 = 'chattr -i ' + target + '' + LinkNeoBoot +'/plugin.pyo'
cmd = 'rm -r ' + target + ' > /dev/null 2>&1'
system(cmd)
cmd = 'cp -r ' + LinkNeoBoot + ' ' + target