Added listing of USB-Devices and better usage info to usbreset
This commit is contained in:
@@ -16,7 +16,11 @@ int main(int argc, char **argv)
|
|||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
if (argc != 2) {
|
if (argc != 2) {
|
||||||
fprintf(stderr, "Usage: usbreset device-filename\n");
|
printf("Listing all USB devices:\n");
|
||||||
|
system("lsusb");
|
||||||
|
fprintf(stderr, "\n\nUsage: usbreset /dev/bus/usb/<Bus>/<Device>\n");
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
filename = argv[1];
|
filename = argv[1];
|
||||||
|
|||||||
Reference in New Issue
Block a user