mirror of
https://github.com/sipeed/NanoKVM.git
synced 2026-09-11 00:22:56 -05:00
Reset USB on new app launch.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user