Add files via upload

This commit is contained in:
gutosie
2021-02-28 13:00:52 +02:00
committed by GitHub
parent 9057ebd0a8
commit 64b4a7eefc

View File

@@ -1009,7 +1009,7 @@ class NeoBootImageChoose(Screen):
system('mkdir /usr/lib/periodon')
else:
if getButtonPin() == 'pinok':
os.system('sleep 2; rm -f /tmp/gut*')
os.system('sleep 2; rm -f /tmp/gut*; ; date %s > /usr/lib/periodon/.accessdate' % UPDATEDATE')
if fileExists('/usr/lib/periodon/.accessdate') and fileExists('/usr/lib/periodon/.kodn'):
mess = _('Bravo!!! neoboot full version activated OK!\nPlease restart your system E2.')
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
@@ -1133,13 +1133,13 @@ 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 ./files/mountpoint.sh; rm ./files/neo.sh')
restartbox = self.session.openWithCallback(self.restartGUI, MessageBox, _('Completed update NeoBoot. You need to restart the E2 !!!\nRestart now ?'), MessageBox.TYPE_YESNO)
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')
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:
os.system('rm -f ' + LinkNeoBoot + '/.location')
self.session.open(TryQuitMainloop, 3)
else:
self.close()