diff options
author | Devaev Maxim <[email protected]> | 2019-11-07 06:42:48 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-11-07 06:42:48 +0300 |
commit | 8abe4b1ac9d341eec17d211328b9f3cd9b59fa0a (patch) | |
tree | 87d08459405e48edd91c09662d440edc378de9a2 /kvmd/plugins/msd/otg/drive.py | |
parent | 10f8c2b3352c951549cc1249d6b24789fb94d688 (diff) |
v2 testing
Diffstat (limited to 'kvmd/plugins/msd/otg/drive.py')
-rw-r--r-- | kvmd/plugins/msd/otg/drive.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/msd/otg/drive.py b/kvmd/plugins/msd/otg/drive.py index e6457527..ff91afcf 100644 --- a/kvmd/plugins/msd/otg/drive.py +++ b/kvmd/plugins/msd/otg/drive.py @@ -34,9 +34,9 @@ class MsdDriveLockedError(MsdOperationError): # ===== class Drive: - def __init__(self, gadget: str, instance: int, lun: int) -> None: + def __init__(self, prefix: str, gadget: str, instance: int, lun: int) -> None: self.__path = os.path.join( - "/sys/kernel/config/usb_gadget", + f"{prefix}/sys/kernel/config/usb_gadget", gadget, f"functions/mass_storage.usb{instance}/lun.{lun}", ) |