summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-07-20 23:16:43 +0000
committerErik Troan <ewt@redhat.com>1999-07-20 23:16:43 +0000
commite4805a94e2e5d24b76a35ea170d179e5d9121d23 (patch)
treea7b94f7f21927c0a78639f379d0fb4b4605881da
parent593ede0c1be367d37b7888f73292be5021282a45 (diff)
downloadanaconda-e4805a94e2e5d24b76a35ea170d179e5d9121d23.tar.gz
anaconda-e4805a94e2e5d24b76a35ea170d179e5d9121d23.tar.xz
anaconda-e4805a94e2e5d24b76a35ea170d179e5d9121d23.zip
added cdrom type
-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);
}