mirror of
https://mojerepo.cf/NeoBoot/NeoBoot-9.git
synced 2025-11-03 18:55:48 +01:00
correction 8.05
This commit is contained in:
@@ -847,7 +847,6 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
||||
|
||||
|
||||
def __init__(self, session):
|
||||
|
||||
Screen.__init__(self, session)
|
||||
|
||||
if not fileExists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh'):
|
||||
@@ -973,7 +972,6 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
||||
#if getBoxHostName == 'osmio4k':
|
||||
#os.system('mkdir -p /media/mmc; mount /dev/mmcblk0p5 /media/mmc')
|
||||
|
||||
|
||||
self.list = []
|
||||
self.setTitle(' NeoBoot %s - Menu' % PLUGINVERSION + ' ' + 'Ver. update: %s' % UPDATEVERSION)
|
||||
self['device_icon'] = Pixmap()
|
||||
@@ -1025,12 +1023,10 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
||||
self.onShow.append(self.updateList)
|
||||
|
||||
def chackkernel(self):
|
||||
|
||||
message = _('NeoBoot wykryl niezgodnos kernela w flash, \nZainstalowac kernel dla flash image ? ?')
|
||||
ybox = self.session.openWithCallback(self.updatekernel, MessageBox, message, MessageBox.TYPE_YESNO)
|
||||
ybox.setTitle(_('Updating ... '))
|
||||
def pomoc(self):
|
||||
|
||||
if fileExists('/.multinfo'):
|
||||
mess = _('Information available only when running Flash.')
|
||||
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
|
||||
@@ -1043,7 +1039,6 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
||||
INSTALLbox.setTitle(_('Zainstalować ponownie neoboota ?'))
|
||||
|
||||
def reinstallboot(self, answer):
|
||||
|
||||
if answer is True:
|
||||
try:
|
||||
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Please reinstall NeoBoot....\nPlease wait, done...\nrestart systemu...')
|
||||
@@ -1060,7 +1055,6 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
||||
False
|
||||
|
||||
def close_exit(self):
|
||||
|
||||
system('touch /tmp/.init_reboot')
|
||||
if not fileExists('/.multinfo'):
|
||||
out = open('%sImageBoot/.neonextboot' % getNeoLocation(), 'w' )
|
||||
@@ -1084,7 +1078,6 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
||||
self.close()
|
||||
|
||||
def ReinstallKernel(self):
|
||||
|
||||
from Plugins.Extensions.NeoBoot.files.tools import ReinstallKernel
|
||||
self.session.open(ReinstallKernel)
|
||||
|
||||
@@ -1094,7 +1087,6 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
||||
# self.close()
|
||||
|
||||
def neoboot_update(self):
|
||||
|
||||
if fileExists('/.multinfo'):
|
||||
mess = _('Downloading available only from the image Flash.')
|
||||
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
|
||||
@@ -1102,7 +1094,6 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
||||
out = open('%sImageBoot/.neonextboot' % getNeoLocation() , 'w')
|
||||
out.write('Flash')
|
||||
out.close()
|
||||
|
||||
message = _('\n\n\n')
|
||||
message += _('WARNING !: The update brings with it the risk of errors.\n')
|
||||
message += _('Before upgrading it is recommended that you make a backup NeoBoot.\n')
|
||||
@@ -1112,14 +1103,12 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
||||
ybox.setTitle(_('The download neoboot update.'))
|
||||
|
||||
def chackupdate2(self, yesno):
|
||||
|
||||
if yesno:
|
||||
self.chackupdate3()
|
||||
else:
|
||||
self.session.open(MessageBox, _('Canceled update.'), MessageBox.TYPE_INFO, 7)
|
||||
|
||||
def chackupdate3(self):
|
||||
|
||||
os.system('cd /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot;curl -O --ftp-ssl https://raw.githubusercontent.com/gutosie/NeoBoot8/master/ver.txt;sleep 3;cd /')
|
||||
if not fileExists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/ver.txt'):
|
||||
os.system('cd /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot;fullwget --no-check-certificate https://raw.githubusercontent.com/gutosie/NeoBoot8/master/ver.txt; sleep 3;cd /')
|
||||
@@ -1139,7 +1128,6 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
||||
self.session.open(MessageBox, _('Updated unnecessary, you have the latest version. Please try again later.'), MessageBox.TYPE_INFO)
|
||||
|
||||
def aktualizacjamboot(self, yesno):
|
||||
|
||||
if yesno:
|
||||
if fileExists('/tmp/*.zip'):
|
||||
os.system('rm /tmp/*.zip')
|
||||
@@ -1157,7 +1145,6 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
||||
|
||||
restartbox = self.session.openWithCallback(self.restartGUI, MessageBox, _('Completed update NeoBoot. You need to restart the E2 !!!\nRestart now ?'), MessageBox.TYPE_YESNO)
|
||||
restartbox.setTitle(_('Restart GUI now ?'))
|
||||
|
||||
else:
|
||||
os.system('rm -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/ver.txt')
|
||||
self.session.open(MessageBox, _('The update has been canceled.'), MessageBox.TYPE_INFO, 8)
|
||||
@@ -1192,23 +1179,20 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
||||
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
|
||||
|
||||
def MBBackup(self):
|
||||
|
||||
from Plugins.Extensions.NeoBoot.files.tools import MBBackup
|
||||
self.session.open(MBBackup)
|
||||
|
||||
def MBRestore(self):
|
||||
|
||||
from Plugins.Extensions.NeoBoot.files.tools import MBRestore
|
||||
self.session.open(MBRestore)
|
||||
|
||||
def updateList(self):
|
||||
if not fileExists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location'):
|
||||
if not fileExists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location') or not fileExists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/kernel.sh'):
|
||||
self.session.open(NeoBootInstallation)
|
||||
else:
|
||||
self.updateListOK()
|
||||
|
||||
def updateListOK(self):
|
||||
|
||||
self.list = []
|
||||
pluginpath = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
|
||||
f = open(pluginpath + '/.location', 'r')
|
||||
@@ -1352,7 +1336,6 @@ valign="center" backgroundColor="black" transparent="1" foregroundColor="white"
|
||||
self.session.open(MBTools)
|
||||
|
||||
def remove(self):
|
||||
|
||||
self.mysel = self['config'].getCurrent()
|
||||
if 'Flash' in self.mysel:
|
||||
self.mysel = 'Flash'
|
||||
@@ -1538,7 +1521,6 @@ def checkimage():
|
||||
|
||||
|
||||
def main(session, **kwargs):
|
||||
|
||||
if not fileExists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom'):
|
||||
pass
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user