Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

shellext: add usb restore for restore to default firmware

  • Loading branch information...
commit 202aca67a675d4accacaea204ff92a8a2d511a3e 1 parent d4a6420
Xiangfu Liu authored March 19, 2012

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 7  src/shellext.c
7  src/shellext.c
@@ -330,7 +330,8 @@ static int usb_load(int argc, char **argv)
330 330
 static void usb_usage(void)
331 331
 {
332 332
 	printf("  usb [help]\n");
333  
-	printf("  usb load file\n");
  333
+	printf("  usb restore\n");
  334
+	printf("  usb load softusb-input.bin\n");
334 335
 	printf("  usb debug [wait]\n");
335 336
 }
336 337
 
@@ -340,6 +341,10 @@ static int main_usb(int argc, char **argv)
340 341
 		usb_usage();
341 342
 		return 0;
342 343
 	}
  344
+	if(!strcmp(argv[1], "restore") && argc == 2) {
  345
+		load_usb_firmware();
  346
+		return 0;
  347
+	}
343 348
 	if(!strcmp(argv[1], "load") && argc == 3)
344 349
 		return usb_load(argc-1, argv+1);
345 350
 	if(!strcmp(argv[1], "debug") &&

0 notes on commit 202aca6

Please sign in to comment.
Something went wrong with that request. Please try again.