Add the "devices" command as an official one

This commit is contained in:
Andrea Mazzoleni 2015-04-06 17:11:27 +02:00
parent 36a05fe53a
commit 55ad36d1a5
5 changed files with 68 additions and 17 deletions

View file

@ -755,7 +755,7 @@ int main(int argc, char* argv[])
operation = OPERATION_SPINUP;
} else if (strcmp(argv[optind], "down") == 0) {
operation = OPERATION_SPINDOWN;
} else if (strcmp(argv[optind], "test-devices") == 0) {
} else if (strcmp(argv[optind], "devices") == 0) {
operation = OPERATION_DEVICES;
} else if (strcmp(argv[optind], "smart") == 0) {
operation = OPERATION_SMART;