summaryrefslogtreecommitdiffstats
path: root/loader/modules.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-12-27 07:28:31 +0000
committerJeremy Katz <katzj@redhat.com>2001-12-27 07:28:31 +0000
commit39dc7a24d8687f7048e628226453aa86f4c6fe02 (patch)
tree3850ce3d7662c86876165800d3fda0cf3b6b2dc2 /loader/modules.c
parentffae3d1f2a7eec8c2669bb0431ccb8bb7011a028 (diff)
downloadanaconda-39dc7a24d8687f7048e628226453aa86f4c6fe02.tar.gz
anaconda-39dc7a24d8687f7048e628226453aa86f4c6fe02.tar.xz
anaconda-39dc7a24d8687f7048e628226453aa86f4c6fe02.zip
merge most of the s/390 loader changes. as with the last batch, an email
about these will be coming soon
Diffstat (limited to 'loader/modules.c')
-rw-r--r--loader/modules.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/loader/modules.c b/loader/modules.c
index d7ba1fb48..631fcf71e 100644
--- a/loader/modules.c
+++ b/loader/modules.c
@@ -574,7 +574,9 @@ int mlWriteConfModules(moduleList list, int fd) {
int scsiNum;
int ethNum;
int trNum = 0;
+ int iucvNum = 0;
char ** arg;
+ char *iucvopt;
if (!list) return 0;
@@ -611,6 +613,8 @@ int mlWriteConfModules(moduleList list, int fd) {
strcat(buf2, "\nalias ");
}
strcat(buf, buf2);
+ if(!strstr(lm->name, "iucv"))
+ iucvNum++;
}
break;
@@ -640,7 +644,13 @@ int mlWriteConfModules(moduleList list, int fd) {
write(fd, buf, strlen(buf));
}
}
-
+ if (iucvNum) {
+ iucvopt = getenv("IUCV");
+ if (iucvopt && *iucvopt) {
+ sprintf(buf, "options netiucv %s\n", iucvopt);
+ write(fd, buf, strlen(buf));
+ }
+ }
return 0;
}