mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
RNDIS Version 5 for Windows XP, automatic driver load on Windows using ncm (#77)
* rndis version 5 implementation for windows xp * make windows pick the ncm usb ethernet driver automatically
This commit is contained in:
@@ -173,10 +173,13 @@ class _Service: # pylint: disable=too-many-instance-attributes
|
||||
|
||||
def __find_iface(self) -> str:
|
||||
logger = get_logger()
|
||||
drv = self.__driver
|
||||
if self.__driver == "rndis5":
|
||||
drv = "rndis"
|
||||
path = env.SYSFS_PREFIX + os.path.join(
|
||||
"/sys/kernel/config/usb_gadget",
|
||||
self.__gadget,
|
||||
f"functions/{self.__driver}.usb0/ifname",
|
||||
f"functions/{drv}.usb0/ifname",
|
||||
)
|
||||
logger.info("Using OTG gadget %r ...", self.__gadget)
|
||||
with open(path) as iface_file:
|
||||
|
||||
Reference in New Issue
Block a user