mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-01 20:05:48 +01:00
Update stbbranding.py
This commit is contained in:
@@ -1094,13 +1094,13 @@ def getNandWrite():
|
|||||||
return NandWrite
|
return NandWrite
|
||||||
|
|
||||||
def getMyUUID():
|
def getMyUUID():
|
||||||
|
#os.system("tune2fs -l /dev/sd?? | awk '/UUID/ {print $NF}' > /tmp/.myuuid")
|
||||||
os.system("tune2fs -l %s | awk '/UUID/ {print $NF}' > /tmp/.myuuid" % (getLocationMultiboot()))
|
os.system("tune2fs -l %s | awk '/UUID/ {print $NF}' > /tmp/.myuuid" % (getLocationMultiboot()))
|
||||||
try:
|
try:
|
||||||
if os.path.isfile('/tmp/.myuuid'):
|
if os.path.isfile('/tmp/.myuuid'):
|
||||||
return open('/tmp/.myuuid').read().strip().upper()
|
return open('/tmp/.myuuid').read().strip().upper()
|
||||||
except:
|
except:
|
||||||
os.system("tune2fs -l /dev/sd?? | awk '/UUID/ {print $NF}' > /tmp/.myuuid")
|
pass
|
||||||
return open('/tmp/.myuuid').read().strip().upper()
|
|
||||||
|
|
||||||
return _('unavailable')
|
return _('unavailable')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user