summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/tools.c
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-03-23 12:30:25 +0000
committerThierry Vignaud <tv@mageia.org>2013-03-23 12:30:25 +0000
commite9943abec27d5e244f3c3e86ae4905356ab67e85 (patch)
treea869517ec0b994993a7a2ba619d81de2fc72e497 /mdk-stage1/tools.c
parentb8fe5265b23376de2a40a58101188f88c0281626 (diff)
downloaddrakx-e9943abec27d5e244f3c3e86ae4905356ab67e85.tar
drakx-e9943abec27d5e244f3c3e86ae4905356ab67e85.tar.gz
drakx-e9943abec27d5e244f3c3e86ae4905356ab67e85.tar.bz2
drakx-e9943abec27d5e244f3c3e86ae4905356ab67e85.tar.xz
drakx-e9943abec27d5e244f3c3e86ae4905356ab67e85.zip
(my_insmod) rename as (my_modprobe) as it really what it is
Diffstat (limited to 'mdk-stage1/tools.c')
-rw-r--r--mdk-stage1/tools.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mdk-stage1/tools.c b/mdk-stage1/tools.c
index 14374661f..768b1f2f7 100644
--- a/mdk-stage1/tools.c
+++ b/mdk-stage1/tools.c
@@ -294,8 +294,8 @@ int get_disks(char *** names, char *** models)
char ** ptr;
int count = 0;
- my_insmod("ide_disk", ANY_DRIVER_TYPE, NULL, 0);
- my_insmod("sd_mod", ANY_DRIVER_TYPE, NULL, 0);
+ my_modprobe("ide_disk", ANY_DRIVER_TYPE, NULL, 0);
+ my_modprobe("sd_mod", ANY_DRIVER_TYPE, NULL, 0);
get_medias(DISK, names, models, BUS_ANY);
@@ -315,8 +315,8 @@ int get_cdroms(char *** names, char *** models)
char ** ptr;
int count = 0;
- my_insmod("ide_cd_mod", ANY_DRIVER_TYPE, NULL, 0);
- my_insmod("sr_mod", ANY_DRIVER_TYPE, NULL, 0);
+ my_modprobe("ide_cd_mod", ANY_DRIVER_TYPE, NULL, 0);
+ my_modprobe("sr_mod", ANY_DRIVER_TYPE, NULL, 0);
get_medias(CDROM, names, models, BUS_ANY);
@@ -334,7 +334,7 @@ char * floppy_device(void)
{
char ** names, ** models;
int fd;
- my_insmod("floppy", ANY_DRIVER_TYPE, NULL, 0);
+ my_modprobe("floppy", ANY_DRIVER_TYPE, NULL, 0);
fd = open("/dev/fd0", O_RDONLY|O_NONBLOCK);
if (fd != -1) {
char drivtyp[17];
@@ -354,7 +354,7 @@ char * floppy_device(void)
close(fd);
}
log_message("seems that you don't have a regular floppy drive");
- my_insmod("sd_mod", ANY_DRIVER_TYPE, NULL, 0);
+ my_modprobe("sd_mod", ANY_DRIVER_TYPE, NULL, 0);
get_medias(FLOPPY, &names, &models, BUS_ANY);
if (names && *names)
return asprintf_("/dev/%s", *names);