mirror of
https://github.com/gutosie/neoboot.git
synced 2025-12-23 16:50:06 +01:00
Update unpack.py
This commit is contained in:
@@ -157,6 +157,8 @@ class InstallImage(Screen, ConfigListScreen):
|
|||||||
self.BlackHole = ConfigYesNo(default=True)
|
self.BlackHole = ConfigYesNo(default=True)
|
||||||
else:
|
else:
|
||||||
self.BlackHole = ConfigYesNo(default=False)
|
self.BlackHole = ConfigYesNo(default=False)
|
||||||
|
if getCPUtype() == 'MIPS':
|
||||||
|
self.Nandsim = ConfigYesNo(default=True)
|
||||||
self.target.value = ''
|
self.target.value = ''
|
||||||
self.curselimage = ''
|
self.curselimage = ''
|
||||||
try:
|
try:
|
||||||
@@ -202,6 +204,8 @@ class InstallImage(Screen, ConfigListScreen):
|
|||||||
self.list.append(getConfigListEntry(_('Copy picon flash to image install ?'), self.PiconR))
|
self.list.append(getConfigListEntry(_('Copy picon flash to image install ?'), self.PiconR))
|
||||||
self.list.append(getConfigListEntry(_('Transfer kodi settings ?'), self.Kodi))
|
self.list.append(getConfigListEntry(_('Transfer kodi settings ?'), self.Kodi))
|
||||||
self.list.append(getConfigListEntry(_('Path BlackHole ? (Not recommended for VuPlus)'), self.BlackHole))
|
self.list.append(getConfigListEntry(_('Path BlackHole ? (Not recommended for VuPlus)'), self.BlackHole))
|
||||||
|
if getCPUtype() == 'MIPS':
|
||||||
|
self.list.append(getConfigListEntry(_('Use Nandsim to install image ?'), self.Nandsim))
|
||||||
|
|
||||||
def HelpInstall(self):
|
def HelpInstall(self):
|
||||||
self.session.open(HelpInstall)
|
self.session.open(HelpInstall)
|
||||||
@@ -260,7 +264,7 @@ class InstallImage(Screen, ConfigListScreen):
|
|||||||
message += _('Please, wait...\n')
|
message += _('Please, wait...\n')
|
||||||
message += "'"
|
message += "'"
|
||||||
cmd1 = 'python ' + pluginpath + '/ex_init.py'
|
cmd1 = 'python ' + pluginpath + '/ex_init.py'
|
||||||
cmd = '%s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s ' % (cmd1,
|
cmd = '%s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s ' % (cmd1,
|
||||||
source,
|
source,
|
||||||
target.replace(' ', '.'),
|
target.replace(' ', '.'),
|
||||||
str(self.CopyFiles.value),
|
str(self.CopyFiles.value),
|
||||||
@@ -276,7 +280,8 @@ class InstallImage(Screen, ConfigListScreen):
|
|||||||
str(self.MediaPortal.value),
|
str(self.MediaPortal.value),
|
||||||
str(self.PiconR.value),
|
str(self.PiconR.value),
|
||||||
str(self.Kodi.value),
|
str(self.Kodi.value),
|
||||||
str(self.BlackHole.value))
|
str(self.BlackHole.value),
|
||||||
|
str(self.Nandsim.value))
|
||||||
print("[MULTI-BOOT]: "), cmd
|
print("[MULTI-BOOT]: "), cmd
|
||||||
from Plugins.Extensions.NeoBoot.plugin import PLUGINVERSION
|
from Plugins.Extensions.NeoBoot.plugin import PLUGINVERSION
|
||||||
self.session.open(Console, _('NeoBoot v.%s - Install new image') % PLUGINVERSION, [message, cmd])
|
self.session.open(Console, _('NeoBoot v.%s - Install new image') % PLUGINVERSION, [message, cmd])
|
||||||
|
|||||||
Reference in New Issue
Block a user