From ad25e25042b8ae67c301f3659f0c615ad0b1d40c Mon Sep 17 00:00:00 2001 From: gutosie Date: Sat, 22 Jan 2022 22:22:05 +0200 Subject: [PATCH] Update stbbranding.py --- NeoBoot/files/stbbranding.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/NeoBoot/files/stbbranding.py b/NeoBoot/files/stbbranding.py index d5bc9e3..be82318 100644 --- a/NeoBoot/files/stbbranding.py +++ b/NeoBoot/files/stbbranding.py @@ -1079,4 +1079,14 @@ def getNandWrite(): return NandWrite +def getMyUUID(): + os.system("tune2fs -l /dev/sd?? | awk '/UUID/ {print $NF}' > /tmp/.myuuid") + try: + if os.path.isfile('/tmp/.myuuid'): + return open('/tmp/.myuuid').read().strip().upper() + except: + pass + + return _('unavailable') + boxbrand = sys.modules[__name__]