From 4777d86d760261f1fd87d310adf12883d35919ef Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 29 Nov 2001 11:09:04 +0000 Subject: remove unneeded handling of "alias scsi_hostadapter" --- mdk-stage1/modules.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c index cb5e65642..3eeed011b 100644 --- a/mdk-stage1/modules.c +++ b/mdk-stage1/modules.c @@ -173,7 +173,7 @@ void init_modules_insmoding(void) static void add_modules_conf(char * str) { - static char data[500] = ""; + static char data[5000] = ""; char * target = "/etc/modules.conf"; int fd; @@ -268,17 +268,6 @@ enum insmod_return my_insmod(const char * mod_name, enum driver_type type, char i = insmod_with_deps(mod_name, options); if (i == 0) { log_message("\tsucceeded %s", mod_name); -#ifndef DISABLE_MEDIAS - if (type == SCSI_ADAPTERS) { - if (number_scsi > 0) - sprintf(alias, "alias scsi_hostadapter%d %s", number_scsi, mod_name); - else - sprintf(alias, "alias scsi_hostadapter %s", mod_name); - number_scsi++; - add_modules_conf(alias); - log_message("SCSI: %s", alias); - } -#endif #ifndef DISABLE_NETWORK if (type == NETWORK_DEVICES) { char ** new_net_devices = get_net_devices(); -- cgit v1.2.1