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:
@@ -1068,6 +1068,18 @@ def getCheckExt():
|
|||||||
neoExt = 'ext4'
|
neoExt = 'ext4'
|
||||||
return neoExt
|
return neoExt
|
||||||
|
|
||||||
|
def getExtCheckHddUsb():
|
||||||
|
neoExt = 'UNKNOWN'
|
||||||
|
if os.path.exists('/proc/mounts'):
|
||||||
|
with open('/proc/mounts', 'r') as f:
|
||||||
|
lines = f.read()
|
||||||
|
f.close()
|
||||||
|
if lines.find('/media/hdd ext3') != -1:
|
||||||
|
neoExt = 'ext3'
|
||||||
|
if lines.find('/media/usb ext3') != -1:
|
||||||
|
neoExt = 'ext3'
|
||||||
|
return neoExt
|
||||||
|
|
||||||
def getNandWrite():
|
def getNandWrite():
|
||||||
NandWrite = 'UNKNOWN'
|
NandWrite = 'UNKNOWN'
|
||||||
if os.path.exists('/usr/sbin/nandwrite'):
|
if os.path.exists('/usr/sbin/nandwrite'):
|
||||||
|
|||||||
Reference in New Issue
Block a user