Skip to content

Commit 3530887

Browse files
committed
Return file system that sits on top of UBI instead of simply UBI
1 parent 34bce78 commit 3530887

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

reolinkfw/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ def get_fs_info(pak: PAK, fs_sections: list[Section]) -> list[dict[str, str]]:
134134
for section in fs_sections:
135135
pak._fd.seek(section.start)
136136
fs = FileType.from_magic(pak._fd.read(4))
137+
if fs == FileType.UBI:
138+
pak._fd.seek(section.start + 266240)
139+
fs = FileType.from_magic(pak._fd.read(4))
137140
result.append({
138141
"name": section.name,
139142
"type": fs.name.lower() if fs is not None else "unknown"

0 commit comments

Comments
 (0)