mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
v2 testing
This commit is contained in:
@@ -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}",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user