From fb0bcf8e8f8ae4681db087bed5f84843c68cdc26 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Sat, 15 Feb 2003 03:54:01 +0000 Subject: don't write things like "alias yenta_socket" to /etc/modules.conf. part of #84379 --- loader2/modules.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'loader2/modules.c') diff --git a/loader2/modules.c b/loader2/modules.c index 99fdf92ec..15090a971 100644 --- a/loader2/modules.c +++ b/loader2/modules.c @@ -611,6 +611,11 @@ static int writeModulesConf(moduleList list, int fd) { strcpy(buf2, "scsi_hostadapter "); scsiNum++; strcat(buf, buf2); + + strcat(buf, lm->name); + strcat(buf, "\n"); + write(fd, buf, strlen(buf)); + break; case DRIVER_NET: @@ -636,15 +641,16 @@ static int writeModulesConf(moduleList list, int fd) { strcat(buf, buf2); } + strcat(buf, lm->name); + strcat(buf, "\n"); + write(fd, buf, strlen(buf)); + break; default: break; } - strcat(buf, lm->name); - strcat(buf, "\n"); - write(fd, buf, strlen(buf)); } if (lm->args) { -- cgit