Reset USB on new app launch.

This commit is contained in:
BuGu
2025-03-21 12:02:03 +08:00
parent a3b577e563
commit ebd391ec26
2 changed files with 2 additions and 1 deletions

View File

@@ -106,7 +106,7 @@ start_usb_dev(){
fi
fi
ls /sys/class/udc/ | cat > UDC
ls /sys/class/udc/ > UDC
echo device > /proc/cviusb/otg_role
}

View File

@@ -161,6 +161,7 @@ void new_app_init(void)
system("rm -r /tmp/server");
system("cp -r /kvmapp/server /tmp/");
system("/tmp/server/NanoKVM-Server &");
system("/etc/init.d/S03usbdev stop_start");
}
void build_complete_resolv(void)