Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

shellext: add usb restore for restore to default firmware

  • Loading branch information...
commit 202aca67a675d4accacaea204ff92a8a2d511a3e 1 parent d4a6420
@xiangfu xiangfu authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/shellext.c
View
7 src/shellext.c
@@ -330,7 +330,8 @@ static int usb_load(int argc, char **argv)
static void usb_usage(void)
{
printf(" usb [help]\n");
- printf(" usb load file\n");
+ printf(" usb restore\n");
+ printf(" usb load softusb-input.bin\n");
printf(" usb debug [wait]\n");
}
@@ -340,6 +341,10 @@ static int main_usb(int argc, char **argv)
usb_usage();
return 0;
}
+ if(!strcmp(argv[1], "restore") && argc == 2) {
+ load_usb_firmware();
+ return 0;
+ }
if(!strcmp(argv[1], "load") && argc == 3)
return usb_load(argc-1, argv+1);
if(!strcmp(argv[1], "debug") &&
Please sign in to comment.
Something went wrong with that request. Please try again.