From b98c11c6ede6b983d4037db2e27d3d98dbcc5afa Mon Sep 17 00:00:00 2001 From: gutosie Date: Wed, 8 Dec 2021 11:36:12 +0200 Subject: [PATCH] Update tools.py --- NeoBoot/files/tools.py | 46 +++++++++++++++++++++++++++++++++--------- 1 file changed, 37 insertions(+), 9 deletions(-) diff --git a/NeoBoot/files/tools.py b/NeoBoot/files/tools.py index 3862eb9..b0cd0ca 100644 --- a/NeoBoot/files/tools.py +++ b/NeoBoot/files/tools.py @@ -245,20 +245,22 @@ class MBTools(Screen): self.list.append(res) self['list']. list = self.list - res = (_('Initialization - formatting disk for neoboot.'), png, 23) + res = (_('Install DreamSatPanel'), png, 23) + self.list.append(res) + self['list']. list = self.list + + res = (_('Initialization - formatting disk for neoboot.'), png, 24) self.list.append(res) self['list']. list = self.list - res = (_('NeoBoot Information'), png, 24) + res = (_('NeoBoot Information'), png, 25) self.list.append(res) self['list']. list = self.list - res = (_('NeoBoot donate'), png, 25) + res = (_('NeoBoot donate'), png, 26) self.list.append(res) self['list']. list = self.list - - def KeyOk(self): self.sel = self['list'].getCurrent() if self.sel: @@ -309,11 +311,13 @@ class MBTools(Screen): pass if self.sel == 22 and self.session.open(MultibootFlashonline): pass - if self.sel == 23 and self.session.open(InitializationFormattingDisk): + if self.sel == 23 and self.session.open(DreamSatPanel): + pass + if self.sel == 24 and self.session.open(InitializationFormattingDisk): pass - if self.sel == 24 and self.session.open(MultiBootMyHelp): + if self.sel == 25 and self.session.open(MultiBootMyHelp): pass - if self.sel == 25 and self.session.open(neoDONATION): + if self.sel == 26 and self.session.open(neoDONATION): pass # if self.sel == 24 and self.session.open(CheckInternet): @@ -1836,7 +1840,8 @@ class MultiStalker(Screen): os.system('rm -f /tmp/*.ipk') cmd1 = 'wget -q "--no-check-certificate" https://raw.githubusercontent.com/ziko-ZR1/Multi-Stalker-install/main/Downloads/installer.sh -O - | /bin/sh' self.session.open(Console, _('Enigma2 restarting..'), [cmd1]) - self.close() + self.close() + class MultibootFlashonline(Screen): __module__ = __name__ @@ -1873,8 +1878,31 @@ class MultibootFlashonline(Screen): else: self.session.open(MessageBox, _('The plugin not installed.\nAccess Fails with Error code error-panel_install.'), MessageBox.TYPE_INFO, 10) self.close() + + +class DreamSatPanel(Screen): + __module__ = __name__ + skin = """ + + + + """ + def __init__(self, session): + Screen.__init__(self, session) + self['lab1'] = Label(_('Re-installing DreamSatPanel \n\nInstall?')) + self['key_red'] = Label(_('Installation')) + self['actions'] = ActionMap(['WizardActions', 'ColorActions'], {'back': self.close, + 'red': self.MultiStalker_update}) + + def MultiStalker_update(self): + os.system('rm -f /tmp/*.ipk') + cmd1 = 'wget -q "--no-check-certificate" http://ipkinstall.ath.cx/ipk-install/DreamSatPanel/installer.sh -O - | /bin/sh' + self.session.open(Console, _('Enigma2 restarting..'), [cmd1]) + self.close() + + class InitializationFormattingDisk(Screen): __module__ = __name__