From 4c9261dcf5d81f863a205104868cd8ce5ccd13ea Mon Sep 17 00:00:00 2001 From: gutosie Date: Sun, 8 Mar 2020 11:23:02 +0200 Subject: [PATCH] update 8.18 --- NeoBoot/extract.py | 2 +- NeoBoot/plugin.py | 35 +++++++++++++++++++++++++++++++---- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/NeoBoot/extract.py b/NeoBoot/extract.py index d4286a2..62abb22 100644 --- a/NeoBoot/extract.py +++ b/NeoBoot/extract.py @@ -883,7 +883,7 @@ def NEOBootExtract(source, target, ZipDelete, BlackHole): #Instalacja image nandsim os.system('echo "Instalacja - nandsim w toku..."') - rc = os.system('insmod /lib/modules/%s/kernel/drivers/mtd/nand/nandsim.ko cache_file=' + getNeoLocation() + 'image_cache first_id_byte=0x20 second_id_byte=0xaa third_id_byte=0x00 fourth_id_byte=0x15;sleep 5' % getKernelVersion()) + rc = os.system('insmod /lib/modules/' + getKernelVersion() + '/kernel/drivers/mtd/nand/nandsim.ko cache_file=' + getNeoLocation() + 'image_cache first_id_byte=0x20 second_id_byte=0xaa third_id_byte=0x00 fourth_id_byte=0x15;sleep 5' )#% getKernelVersion()) cmd = 'dd if=%s of=/dev/mtdblock%s bs=2048' % (rootfname, mtd) rc = os.system(cmd) cmd = 'ubiattach /dev/ubi_ctrl -m %s -O 2048' % mtd diff --git a/NeoBoot/plugin.py b/NeoBoot/plugin.py index 0312331..af07458 100644 --- a/NeoBoot/plugin.py +++ b/NeoBoot/plugin.py @@ -49,7 +49,7 @@ LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot' # warranty, use at YOUR own risk. PLUGINVERSION = '8.01' -UPDATEVERSION = '8.17' +UPDATEVERSION = '8.18' def Freespace(dev): statdev = os.statvfs(dev) @@ -60,10 +60,37 @@ def Freespace(dev): class MyUpgrade(Screen): screenwidth = getDesktop(0).size().width() if screenwidth and screenwidth == 1920: - skin = """\{"template": [MultiContentEntryText(pos = (90, 1), size = (920, 66), flags = RT_HALIGN_LEFT|RT_VALIGN_CENTER, text = 0),MultiContentEntryPixmapAlphaTest(pos = (8, 4), size = (66, 66), png = 1),],"fonts": [gFont("Regular", 40)],"itemHeight": 66}""" + skin = """ + + + \ + {"template": [MultiContentEntryText(pos = (90, 1), size = (920, 66), flags = RT_HALIGN_LEFT|RT_VALIGN_CENTER, text = 0), + MultiContentEntryPixmapAlphaTest(pos = (8, 4), size = (66, 66), png = 1), + ], + "fonts": [gFont("Regular", 40)], + "itemHeight": 66 + } + + + + + """ else: - skin = """{"template": [MultiContentEntryText(pos = (90, 1), size = (920, 66), flags = RT_HALIGN_LEFT|RT_VALIGN_CENTER, text = 0),MultiContentEntryPixmapAlphaTest(pos = (8, 4), size = (66, 66), png = 1),],"fonts": [gFont("Regular", 40)],"itemHeight": 66}""" - + skin = """ + + + + {"template": [MultiContentEntryText(pos = (90, 1), size = (920, 66), flags = RT_HALIGN_LEFT|RT_VALIGN_CENTER, text = 0), + MultiContentEntryPixmapAlphaTest(pos = (8, 4), size = (66, 66), png = 1), + ], + "fonts": [gFont("Regular", 40)], + "itemHeight": 66 + } + + + + + """ __module__ = __name__ def __init__(self, session):