summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/Makefile2
-rw-r--r--utils/modlist.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/utils/Makefile b/utils/Makefile
index ba60074c5..9101e5b47 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -3,3 +3,5 @@ CFLAGS = -Wall -g
LDFLAGS = -g
all: modlist
+
+clean: rm -f modlist
diff --git a/utils/modlist.c b/utils/modlist.c
index 12e325d28..efb768c8c 100644
--- a/utils/modlist.c
+++ b/utils/modlist.c
@@ -39,8 +39,10 @@ int main(int argc, char ** argv) {
major = DRIVER_NET;
} else if (!strcasecmp(type, "fs")) {
major = DRIVER_FS;
+ } else if (!strcasecmp(type, "cdrom")) {
+ major = DRIVER_CDROM;
} else {
- fprintf(stderr, "type must be one of scsi, net, fs\n");
+ fprintf(stderr, "type must be one of scsi, net, fs, cdrom\n");
exit(1);
}