summaryrefslogtreecommitdiff
path: root/kvmd/apps/otgnet/__init__.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-01-20 09:59:05 +0300
committerMaxim Devaev <[email protected]>2022-01-20 09:59:05 +0300
commitbdc2a317e536dca33048dc8e308fe9a7e20ecc15 (patch)
tree289d5c8b62fb2d8716ee5d5888658c8dea25aaec /kvmd/apps/otgnet/__init__.py
parentba1f66db9ca0073730533bff79c6df80b9321a42 (diff)
refactoring
Diffstat (limited to 'kvmd/apps/otgnet/__init__.py')
-rw-r--r--kvmd/apps/otgnet/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/apps/otgnet/__init__.py b/kvmd/apps/otgnet/__init__.py
index eeb9073a..ad1f6a28 100644
--- a/kvmd/apps/otgnet/__init__.py
+++ b/kvmd/apps/otgnet/__init__.py
@@ -173,13 +173,13 @@ class _Service: # pylint: disable=too-many-instance-attributes
def __find_iface(self) -> str:
logger = get_logger()
- drv = self.__driver
+ real_driver = self.__driver
if self.__driver == "rndis5":
- drv = "rndis"
+ real_driver = "rndis"
path = env.SYSFS_PREFIX + os.path.join(
"/sys/kernel/config/usb_gadget",
self.__gadget,
- f"functions/{drv}.usb0/ifname",
+ f"functions/{real_driver}.usb0/ifname",
)
logger.info("Using OTG gadget %r ...", self.__gadget)
with open(path) as iface_file: