Add files via upload

This commit is contained in:
gutosie
2021-02-28 13:15:41 +02:00
committed by GitHub
parent 2604ed20b1
commit 7b701a60aa

View File

@@ -53,8 +53,8 @@ else:
from Plugins.Extensions.NeoBoot.files.neoconsole import Console
loggscrash = time.localtime(time.time())
PLUGINVERSION = '9.11'
UPDATEVERSION = '9.11'
PLUGINVERSION = '9.13'
UPDATEVERSION = '9.13'
UPDATEDATE = '"+%Y04%d"'
LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
@@ -1133,13 +1133,14 @@ class NeoBootImageChoose(Screen):
os.system('cd /tmp/; cp -rf ./neoboot-main/NeoBoot /usr/lib/enigma2/python/Plugins/Extensions; rm -rf /tmp/neoboot*; rm ' + LinkNeoBoot + '/ver.txt; cd ' + LinkNeoBoot + '/; chmod 0755 ./bin/neoini*; chmod 0755 ./ex_init.py; chmod 0755 ./tmpfiles/target/*; chmod 0755 ./files/NeoBoot.sh; chmod 0755 ./files/userscript.sh; cd /; date %s > /usr/lib/periodon/.accessdate' % UPDATEDATE)
if getCPUtype() == 'MIPS':
os.system('cd ' + LinkNeoBoot + '/; cp -rf ./bin/neoinitmipsvu /sbin; chmod 755 /sbin/neoinitmipsvu; cp -rf ./bin/neoinitmips /sbin; chmod 755 /sbin/neoinitmips; cd')
os.system('cd ' + LinkNeoBoot + '/; rm ./bin/install; rm -f ./files/testinout; rm ./files/mountpoint.sh; rm ./files/neo.sh; rm -f ' + LinkNeoBoot + '/.location; rm -f /usr/lib/periodon/.kodn')
os.system('cd ' + LinkNeoBoot + '/; rm ./bin/install; rm -f ./files/testinout; rm ./files/mountpoint.sh; rm ./files/neo.sh; rm -f /usr/lib/periodon/.kodn')
restartbox = self.session.openWithCallback(self.restartGUI, MessageBox, _('Completed update NeoBoot. You need to restart the E2 and re-enter your pin code VIP!!!\nRestart now ?'), MessageBox.TYPE_YESNO)
restartbox.setTitle(_('Restart GUI now ?'))
def restartGUI(self, answer):
if answer is True:
if answer is True:
os.system('rm -f ' + LinkNeoBoot + '/.location')
self.session.open(TryQuitMainloop, 3)
else:
self.close()