mirror of
https://github.com/gutosie/neoboot.git
synced 2025-12-22 16:20:24 +01:00
Update stbbranding.py
This commit is contained in:
@@ -1079,4 +1079,14 @@ def getNandWrite():
|
|||||||
|
|
||||||
return NandWrite
|
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__]
|
boxbrand = sys.modules[__name__]
|
||||||
|
|||||||
Reference in New Issue
Block a user