Update stbbranding.py

This commit is contained in:
gutosie
2022-01-22 22:22:05 +02:00
committed by GitHub
parent 6648f0abfe
commit ad25e25042

View File

@@ -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__]