From 7c1c1e7fe87b3ff1128971089ef612ddf30fdfe1 Mon Sep 17 00:00:00 2001 From: gutosie Date: Thu, 30 Dec 2021 16:52:04 +0200 Subject: [PATCH] Update stbbranding.py --- NeoBoot/files/stbbranding.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/NeoBoot/files/stbbranding.py b/NeoBoot/files/stbbranding.py index 557a602..d5bc9e3 100644 --- a/NeoBoot/files/stbbranding.py +++ b/NeoBoot/files/stbbranding.py @@ -1066,6 +1066,17 @@ def getCheckExt(): neoExt = 'ext3' elif lines.find('/media/usb ext4') != -1: neoExt = 'ext4' - return neoExt + return neoExt + +def getNandWrite(): + NandWrite = 'UNKNOWN' + if os.path.exists('/usr/sbin/nandwrite'): + with open('/usr/sbin/nandwrite', 'r') as f: + lines = f.read() + f.close() + if lines.find('nandwrite') != -1: + NandWrite = 'nandwrite' + + return NandWrite boxbrand = sys.modules[__name__]