mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-18 21:09:41 +02:00
umount
This commit is contained in:
parent
567f44f5b5
commit
cfde07c9c6
1 changed files with 3 additions and 1 deletions
|
@ -602,6 +602,8 @@ def scan():
|
|||
|
||||
def wait():
|
||||
"""Wait for insert of remove of USB device"""
|
||||
# handle error - first unmount the device
|
||||
umount_device()
|
||||
# Loop
|
||||
context = pyudev.Context()
|
||||
monitor = pyudev.Monitor.from_netlink(context)
|
||||
|
@ -719,7 +721,7 @@ def clean():
|
|||
break
|
||||
# wait for clean
|
||||
log('PRESS KEY TO CLEAN', flush=True)
|
||||
screen.getch()
|
||||
wait_mouse_click()
|
||||
|
||||
# TODO: check device is still present
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue