mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 05:19:40 +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():
|
def wait():
|
||||||
"""Wait for insert of remove of USB device"""
|
"""Wait for insert of remove of USB device"""
|
||||||
|
# handle error - first unmount the device
|
||||||
|
umount_device()
|
||||||
# Loop
|
# Loop
|
||||||
context = pyudev.Context()
|
context = pyudev.Context()
|
||||||
monitor = pyudev.Monitor.from_netlink(context)
|
monitor = pyudev.Monitor.from_netlink(context)
|
||||||
|
@ -719,7 +721,7 @@ def clean():
|
||||||
break
|
break
|
||||||
# wait for clean
|
# wait for clean
|
||||||
log('PRESS KEY TO CLEAN', flush=True)
|
log('PRESS KEY TO CLEAN', flush=True)
|
||||||
screen.getch()
|
wait_mouse_click()
|
||||||
|
|
||||||
# TODO: check device is still present
|
# TODO: check device is still present
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue