From c5bdf3ecc197a6ebb57650d59e7a394182e4a101 Mon Sep 17 00:00:00 2001 From: gutosie Date: Wed, 2 Feb 2022 12:46:13 +0200 Subject: [PATCH] Update stbbranding.py --- NeoBoot/files/stbbranding.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/NeoBoot/files/stbbranding.py b/NeoBoot/files/stbbranding.py index c70a098..cd24b78 100644 --- a/NeoBoot/files/stbbranding.py +++ b/NeoBoot/files/stbbranding.py @@ -148,16 +148,18 @@ def getImageATv(): def getNeoLocation(): - locatino = 'UNKNOWN' + locatinoneo = 'UNKNOWN' if os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location'): with open('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location', 'r') as f: locatino = f.readline().strip() f.close() elif os.path.exists('/media/hdd/ImageBoot'): - locatino = '/media/hdd/' + locatinoneo = '/media/hdd/' elif os.path.exists('/media/usb/ImageBoot'): - locatino = '/media/usb/' - return locatino + locatinoneo = '/media/usb/' + else + locatinoneo = locatino + return locatinoneo #check ext @@ -1074,9 +1076,9 @@ def getExtCheckHddUsb(): with open('/proc/mounts', 'r') as f: lines = f.read() f.close() - if lines.find('/media/hdd ext3') != -1: + if lines.find('/media/hdd ext3') != -1 and os.path.exists('/media/hdd/ImageBoot'): neoExt = 'ext3' - if lines.find('/media/usb ext3') != -1: + if lines.find('/media/usb ext3') != -1 and os.path.exists('/media/usb/ImageBoot'): neoExt = 'ext3' return neoExt