mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-14 19:25:05 -05:00
Add argument handler
This commit is contained in:
parent
caad63555b
commit
3661aaa6e5
1 changed files with 3 additions and 0 deletions
|
@ -683,6 +683,9 @@ class DA_handler(metaclass=LogBase):
|
|||
print(f"Dumped offset {hex(start)} with length {hex(length)} as {filename}.")
|
||||
else:
|
||||
print(f"Failed to dump offset {hex(start)} with length {hex(length)} as {filename}.")
|
||||
elif cmd == "fs":
|
||||
print(f'Mounting FUSE fs at: {args.mountpoint}...')
|
||||
fs = FUSE(MtkDaFS(self, rw=args.rw), mountpoint=args.mountpoint, foreground=True, allow_other=True, nothreads=True)
|
||||
elif cmd == "footer":
|
||||
filename = args.filename
|
||||
self.da_footer(filename=filename)
|
||||
|
|
Loading…
Reference in a new issue