Added listing of USB-Devices and better usage info to usbreset
This commit is contained in:
1 parent
709750e98d
commit
80e0543b81
1 file changed
+5
-1
+5
-1
@@ -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